Ben get php uploader çalışma çalışıyor ama sorunlar bir çok sahip olmuştur Herkese Merhaba. İşte benim kodudur. Ben $ HTTP_POST_FILES Tanımsız Endeksi hataları alıyorum. Ben bir şey eksik? Ben maksimum dosya boyutu ve diğer şeylerin bir listesi için php.ini kontrol etti. Bunu benim tmp klasörü şey kontrol etti. Ben bir süre önce bu kullanmak mümkün ama benim maksimum dosya yükleyebilir arttığı her şeyi kırdı gibi görünüyordu ..
PHP FILE
ini_set('display_errors', 1);
ini_set('log_errors', 1);
error_reporting(E_ALL);
// Where the file is going to be placed
$target_path = 'Test/';
$target_path = $target_path. basename( $_FILES['uploadedfile']['name']);
printf($_FILES);
print_r($_FILES);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path))
{
echo "The file ". basename( $_FILES['uploadedfile']['name']).
" has been uploaded";
}
else
{
echo "There was an error uploading the file, please try again!";
}
?>
HTML FILE
<form method="post" action="UploadPHP.php" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>
</body>
</html>
Ben alıyorum Hata
Notice: Undefined index: uploadedfile in /Movies/UploadPHP.php on line 10
Notice: Array to string conversion in /Movies/UploadPHP.php on line 12 ArrayArray ( )
Notice: Undefined index: uploadedfile in /Movies/UploadPHP.php on line 15
There was an error uploading the file, please try again!
Bu yüzden bazı diğer şeyler bakmaya karar verdi ve şimdi sunucu alışkanlık herhangi mesajları kabul! Yani şimdi kayıp .... 2048m ve apache yeniden başlatılır: Ben ben sonrası boyutu değişti ne yanlış gitti hiçbir fikrim yok.