downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | sites | links | conferences | my

search for in the

Working with streams> <Working with resources
[edit] Last updated: Fri, 22 Jul 2011

view this page in

Working with INI settings

add a note add a note User Contributed Notes Working with INI settings
asadabbas88 at gmail dot com 04-Jan-2009 10:55
I have found a very useful trick ... It may help someone so I think of posting it here ... most people have some restriction in accessing their php.ini file ... so they use ini_set() method ... but for few things eg upload_max_filesize it won't as it is very late to set these type of setting during the execution of the script ... so if you are using apache then .htaccess file can solve your problem :)
just create a .htaccess file and for setting your upload_max_filesize value to 100 MB u can just write :

php_value upload_max_filesize 101M

in your .htaccess file and you are done. Make sure your .htaccess file is in the directory where your php file resides.

show source | credits | sitemap | contact | advertising | mirror sites