I trying to use PHP’s file upload abilities, but when I try to upload certain file sizes (9MB for example) it’s not going through. Smaller files goes fine.
Even when I set error reporting to be on “E_ALL” and try and upload a bigger file. I don’t see any error message.
I have tried setting these lines at the top of the PHP script that uploads the files but still no go:
ini_set('memory_limit', '96M');
ini_set('post_max_size', '96M');
ini_set('upload_max_filesize', '96M');
Take a look at the list of parameters for PHP and where you can set them. If I read that list correctly,
post_max_sizeandupload_max_filesizecan only be set in php.ini, not via ini_set.Set those values in the appropriate php.ini (there are different ones for CLI and mod_php), or if you don’t have access to the main php.ini create a php.ini in your folder.
To check if the settings work, create a phpinfo file and check the values.