Mancent Posted December 30, 2010 Share Posted December 30, 2010 Do any of you know how to override the php.ini file on a webhost to allow uploads using php to be set for 2gig mx file size? .htaccess is not working and my host says it supports changing the php.ini but nothing seems to be working. Quote Link to comment https://forums.phpfreaks.com/topic/223025-webhost-phpini-override-upload_max_filesize/ Share on other sites More sharing options...
PFMaBiSmAd Posted December 30, 2010 Share Posted December 30, 2010 What exact syntax are you using in the local php.ini? Have you checked using a phpinfo(); statement if the setting is actually getting changed? What sort of problem are you having, because you would also need to change the post_max_size setting as well? Quote Link to comment https://forums.phpfreaks.com/topic/223025-webhost-phpini-override-upload_max_filesize/#findComment-1153105 Share on other sites More sharing options...
QuickOldCar Posted December 30, 2010 Share Posted December 30, 2010 And to add to that, did you restart so the changes take effect. Quote Link to comment https://forums.phpfreaks.com/topic/223025-webhost-phpini-override-upload_max_filesize/#findComment-1153111 Share on other sites More sharing options...
PFMaBiSmAd Posted December 31, 2010 Share Posted December 31, 2010 A local php.ini is read on very page request because it is only available when php is running on the web server as a CGI application and there is a separate invocation of php on each page request. Quote Link to comment https://forums.phpfreaks.com/topic/223025-webhost-phpini-override-upload_max_filesize/#findComment-1153290 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.