Jump to content

usually what is the default php upload limit?


LanceT

Recommended Posts

If your web host kept PHP's default upload limit setting then it'll be 8MB. To check your hosts upload limit, upload a php file called info.php that has this in it:

<?php
phpinfo();
?>

Go to info.php and scroll down to find the line starting with this:

upload_max_filesize

Next to it, it should show the max filesize for uploads.

 

If the upload limit is too low for you then you might be able to increae the limit by adding the following in a .htaccess file:

php_value "upload_max_filesize" 16M

Now the upload limit will be 16MB.

either by using ini_set function in your script:

// set the script timeout limit to 60 secs
ini_set("max_execution_time",  60);

 

or by using a .htaccess file:

# set the script timeout limit to 60 secs
php_value "max_execution_time" 60

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.