I keep on getting this error when uploading an image with PHP. I know how to count the number of errors:
$file = $_FILES["file"];
echo $file_error = $file["error"];
How do I echo the type of error with PHP?
I keep on getting this error when uploading an image with PHP. I know how to count the number of errors:
$file = $_FILES["file"];
echo $file_error = $file["error"];
How do I echo the type of error with PHP?
Have a read through the manuals, it's all in there.
Plus, for your other question in comments:
"Do you know how I can change the max file size in php.ini?"
Consult the following on Stack:
and in the manual on Description of core php.ini directives of course.