- Edited
upload_tmp_dir php
add /tmp to upload_tmp_dir
vi /etc/php.ini
upload_tmp_dir /tmp
chmod albert:albert /tmp
it is not working
<?php
echo "Filename: " . $FILES['file']['name']."<br>";
echo "Type : " . $FILES['file']['type'] ."<br>";
echo "Size : " . $FILES['file']['size'] ."<br>";
echo "Temp name: " . $FILES['file']['tmp_name'] ."<br>";
echo "Error : " . $FILES['file']['error'] . "<br>";
?>
Warning: Undefined array key "file" in /var/www/html/$_FILES.php on line 2
Warning: Trying to access array offset on value of type null in /var/www/html/$_FILES.php on line 2
Filename:
Warning: Undefined array key "file" in /var/www/html/$_FILES.php on line 3
Warning: Trying to access array offset on value of type null in /var/www/html/$_FILES.php on line 3
Type :
Warning: Undefined array key "file" in /var/www/html/$_FILES.php on line 4
Warning: Trying to access array offset on value of type null in /var/www/html/$_FILES.php on line 4
Size :
Warning: Undefined array key "file" in /var/www/html/$_FILES.php on line 5
Warning: Trying to access array offset on value of type null in /var/www/html/$_FILES.php on line 5
Temp name:
Warning: Undefined array key "file" in /var/www/html/$_FILES.php on line 6
Warning: Trying to access array offset on value of type null in /var/www/html/$_FILES.php on line 6
Error