I Cant upload file of size greater than 2 MB on my PHP server , what will be issue
I Cant upload file of size greater than 2 MB on my P开发者_Go百科HP server , what will be issue can u please help, although in my PHP code i haven't put any limit in my PHP code
Please help I have used Apache
Thanks in adv
The default php installation has an upload file size limit of 2MBs. This link explains all the details.
In Linux with apache2 you can find this file in:
/etc/php5/apache2/php.ini OR
/etc/php.ini
If none of the above is true for you, look for Loaded Configuration File in output of:
phpinfo();
Also check the LimitRequestBody
directive in Apache config.
PHP.ini contains a setting upload_max_filesize
. The default value is 2MB. Keep in mind that even where PHP does not limit this value (e.g. if you modify your PHP.ini to a higher level) that your web server software (e.g. Apache, Lighttpd, Nginx, IIS) probably impose their own limits.
Check in php.ini (/etc/php5/apache2/php.ini in debian & ubuntu)
directive: upload_max_filesize
if can't - look this key in .htaccess file
精彩评论