How to change/add configuration on php.ini?
by admin on Monday, December 27th, 2010 | 2 Comments
Dear all,
I have a question how i can change/add extra command on php.ini? My problem is is using a web hosting (Linux+Cpanel) where i can’t manipulate php.ini to do any configuration since that server is own by hosting provider/company?
I just want to add this:
php_value post_max_size 10M
php_value upload_max_filesize 10M
post_max_size = 12M
upload_max_filesize = 12M
So how i can do it?
Thanxs
Use the ini_set() function at the start of your PHP code.
Hope this helps,
Daniel Dutton
Shore Dutton Internet Consultancy
|
AFAIK, you can’t. If you need bigger files allowed, try contacting your webhosting provider. It doesn’t put any burden on their servers, unlike php_value max_execution_time does.
References :
Use the ini_set() function at the start of your PHP code.
Hope this helps,
Daniel Dutton
Shore Dutton Internet Consultancy
References :
http://uk.php.net/ini_set