Dysan Posted November 23, 2007 Share Posted November 23, 2007 Can the upload_max_filesize be changed? - If so how? Quote Link to comment Share on other sites More sharing options...
binarymonkey Posted November 23, 2007 Share Posted November 23, 2007 In php.ini. If you are on shared hosting then you'll have to ask your webmaster (who will most likely say no unfortunately)... http://uk2.php.net/manual/en/ini.core.php#ini.upload-max-filesize Quote Link to comment Share on other sites More sharing options...
phpSensei Posted November 23, 2007 Share Posted November 23, 2007 do not use that method, since people can easily hack into your form and change it themselves. use <?php $filesize = $_FILES['filename']['size']; if($filesize > 1000){ die ("Sorry your file is too large"); } ?> Quote Link to comment Share on other sites More sharing options...
binarymonkey Posted November 23, 2007 Share Posted November 23, 2007 I dont see how anybody could hack into your 'form' and change an INI setting... Also, upload_max_filesize is not a function? Quote Link to comment Share on other sites More sharing options...
phpSensei Posted November 23, 2007 Share Posted November 23, 2007 When you put in a hidden field, then yes people can hack it. 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.