PHP dosya yükleme için özel bir hata işleme/raporlama fonksiyonu yazıyorum ve döndürülen hata kodları 5.Neden dosya yükleme hatası kodları php miss number '5' dosyasında?
hariç 0 ila 8 arasında numaralandırılmış fark bu ben kullanıyorum kaynağındaki bir yazım hatası mı yoksa öyle Gerçekten bu şekilde mi? Eğer öyleyse, neden '5' sayısını atladıklarını merak ediyorum.
Teşekkürler. Pekka
cevaben
Düzenleme , burada PHP manuel hata kodları.
0 | UPLOAD_ERR_OK | There is no error, the file uploaded with success. 1 | UPLOAD_ERR_INI_SIZE | Size exceeds upload_max_filesize in php.ini. 2 | UPLOAD_ERR_FORM_SIZE | Size exceeds MAX_FILE_SIZE specified in HTML form. 3 | UPLOAD_ERR_PARTIAL | The uploaded file was only partially uploaded. 4 | UPLOAD_ERR_NO_FILE | No file was uploaded.5|UPLOAD_ERROR_E| As explained by @Progman, removed in rev. 81792 6 | UPLOAD_ERR_NO_TMP_DIR | Missing a temporary folder. 7 | UPLOAD_ERR_CANT_WRITE | Failed to write file to disk. 8 | UPLOAD_ERR_EXTENSION | File upload stopped by extension.
've döndürülen hata kodlarının, 5 'dışında 8'den bir numara olduğunu fark ettik. Sadece 4 hata kodu biliyorum. –