File Upload Error
I am trying to upload a XLS file through PHP. the file size is > 2MB
in my form here is the file size thing.
In my PHP script I added this
<input type="hidden" name="MAX_FILE_SIZE" value="350000000" class="hidden"/>
But still the script runs and after 4-5 minutes, it shows.
ini_set ('max_execution_time', '86400');
The filename blah/blah is not readable.
When i see the php_info that shows me the post_max_size is 10M and the max_upload_filesize is 2M, so i tried to over write both by above php code.
but still i m getting the error, please help !
Certain php configuration settings cannot be changed at runtime. This is because php does certain things before it even executes your script, so it's too late. Uploads are one of these. You need to change some in php.ini, or in the webserver context(httdpd.conf / .htaccess).
You can learn more here: