jmh754 Posted July 24, 2006 Share Posted July 24, 2006 Hi, I am in need of a way to change php's upload_max_filesize setting even though I can't access the server's php.ini file. I seem to remember doing this somehow in the past, though it was a while back and I can't remember if I'm making it up or not. I'm also trying to get my hosting company to change it for me, but their online help ticket system is apparently broken, and access to their forums is pending...sigh. Any help would be much appreciated.Jason Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted July 24, 2006 Share Posted July 24, 2006 You might be able to use ini_set to temporarily ajust the the max upload size for your script only, like so:[code]ini_set('upload_max_filesize', syze_in_bytes);[/code]change size_in_bytes to the max file size you'll accept a file to be in bytes. For example 1048576 bytes will equal to 1MegaByte Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted July 24, 2006 Share Posted July 24, 2006 You probably want to use the ini_set() function (http://www.php.net/ini_set)Ken Quote Link to comment Share on other sites More sharing options...
ryanlwh Posted July 24, 2006 Share Posted July 24, 2006 take a look at what mode your host is running php under. if it's CLI or CGI mode, you can create your own php.ini in the folder that you need the changes to apply.http://us3.php.net/manual/en/configuration.php#configuration.file Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.