dbradbury Posted April 28, 2010 Share Posted April 28, 2010 i know its gotta do with .htaccess or php function ini_set.. has anyone needed to do this? if so, could you guide me please Quote Link to comment https://forums.phpfreaks.com/topic/200063-how-do-i-increase-the-upload-limit-i-have-on-my-sharing-host/ Share on other sites More sharing options...
PFMaBiSmAd Posted April 28, 2010 Share Posted April 28, 2010 Your first step would be to check with your web host (many have FAQ sections) to find out if you can change the value and what method to use. A local php.ini or a .htaccess file is specific to how php is running on the web server. You must know which method is supported. Once you find out if you can change the value and which method to use and you cannot get it to work, then you ask for help on a forum. Quote Link to comment https://forums.phpfreaks.com/topic/200063-how-do-i-increase-the-upload-limit-i-have-on-my-sharing-host/#findComment-1050072 Share on other sites More sharing options...
dbradbury Posted April 28, 2010 Author Share Posted April 28, 2010 i asked them, they said the php.ini file cant be changed but can be modified, or modulated.. by .htaccess with php_flag or ini_set() OR ini_alter() Quote Link to comment https://forums.phpfreaks.com/topic/200063-how-do-i-increase-the-upload-limit-i-have-on-my-sharing-host/#findComment-1050144 Share on other sites More sharing options...
PFMaBiSmAd Posted April 29, 2010 Share Posted April 29, 2010 The values that affect the maximum size of file that can be uploaded cannot be set in a script using ini_set() statements (ini_alter() is an alias name for ini_set().) Therefore, you would need to put php_value statements in a .htaccess file. Something like - php_value upload_max_filesize 30M php_value post_max_size 30M Quote Link to comment https://forums.phpfreaks.com/topic/200063-how-do-i-increase-the-upload-limit-i-have-on-my-sharing-host/#findComment-1050277 Share on other sites More sharing options...
dbradbury Posted April 29, 2010 Author Share Posted April 29, 2010 thanks for that, that increase the limit on it but i now got an error.. it said that the file cannot be written to disk :s what does that mean? Quote Link to comment https://forums.phpfreaks.com/topic/200063-how-do-i-increase-the-upload-limit-i-have-on-my-sharing-host/#findComment-1050402 Share on other sites More sharing options...
PFMaBiSmAd Posted April 29, 2010 Share Posted April 29, 2010 Probably a permission problem. It would take seeing the actual code and the error message to be able to directly help. Quote Link to comment https://forums.phpfreaks.com/topic/200063-how-do-i-increase-the-upload-limit-i-have-on-my-sharing-host/#findComment-1050465 Share on other sites More sharing options...
dbradbury Posted April 29, 2010 Author Share Posted April 29, 2010 well the error message is pretty much that, the file cannot be written to the disk.. and the code.. its a free flash image gallery, i wouldnt know which part id need to show you.. Quote Link to comment https://forums.phpfreaks.com/topic/200063-how-do-i-increase-the-upload-limit-i-have-on-my-sharing-host/#findComment-1050533 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.