Clarky Posted February 5, 2007 Share Posted February 5, 2007 Heya, i'm trying to change my upload_max_filesize in my php script, using this code: print ini_get('upload_max_filesize'); if(!ini_set('upload_max_filesize',"10M")) { echo "<br>Failed"; } Link to comment https://forums.phpfreaks.com/topic/37115-ini_set/ Share on other sites More sharing options...
ToonMariner Posted February 5, 2007 Share Posted February 5, 2007 you can't change that setting in your php code if the version of php you are running is 4.2.3 or greater (prior to this version you could.) You need access to either of the following: php.ini file apache http.conf file OR .htaccess file WITH the server settings allowing you to set various php_flags. Link to comment https://forums.phpfreaks.com/topic/37115-ini_set/#findComment-177266 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.