Wednesday, April 08, 2009

How to change the values in the php.ini file dynamically?

Have a look at http://de.php. net/manual/ en/ini.php# ini.list
You will see, that upload_max_filesize and post_max_size are settable by PHP_INI_PERDIR, what means that "Entry can be set in php.ini, .htaccess or httpd.conf"

Steps:
create .htaccess file and type the below code in this file

php_value upload_max_filesize 100M

and upload the file on that directory where u need it

No comments: