Help - Search - Members - Calendar
Full Version: Is There A Php Upload Limit?
TotalChoice Hosting Family Forums > Scripting Central > Installing Scripts
The-Kevster
Hi,
I've just installed a file attatchment mod to my phpbb2 website and i am unable to upload files over 2 meg, could anyone tell me if TCh have a PHP upload limit of 2 meg and i fi could get it raised to 10 meg?

thanks in advance
The Kevster
TCH-Bruce
Moving for organization and better exposure.
The-Kevster
QUOTE(TCH-Bruce @ May 21 2004, 08:19 AM)
Moving for organization and better exposure.

does that answer my question?
TCH-Bruce
No, that doesn't answer your question. I don't know the answer and someone will be along to answer if they do. I just moved the post to a better forum for organization.
TCH-MikeJ
Hi Kevster,

PHP itself has a 2 meg limit by default. You can change this default in your .htaccess file. Just put in your .htaccess file in your public_html directory (or the top directory of your forum software) the following line:
CODE
php_value upload_max_filesize 10M


That would change the max file size allowed to 10 megs. Change the 10M if you decide you want a different file size allowed.
The-Kevster
QUOTE(TCH-Bruce @ May 21 2004, 08:27 AM)
No, that doesn't answer your question. I don't know the answer and someone will be along to answer if they do. I just moved the post to a better forum for organization.

Sorry for posting in the wrong place, i couldn't see you'd moved it as i just followed a link in my email rolleyes.gif
TCH-Bruce
QUOTE(The-Kevster @ May 21 2004, 10:19 AM)
Sorry for posting in the wrong place, i couldn't see you'd moved it as i just followed a link in my email rolleyes.gif

No problem. That's what we as Mods are supposed to do. wink.gif
The-Kevster
QUOTE(TCH-MikeJ @ May 21 2004, 08:42 AM)
Hi Kevster,

PHP itself has a 2 meg limit by default. You can change this default in your .htaccess file. Just put in your .htaccess file in your public_html directory (or the top directory of your forum software) the following line:
CODE
php_value upload_max_filesize 10M


That would change the max file size allowed to 10 megs. Change the 10M if you decide you want a different file size allowed.

That work brillently, thank you, 10/10!
borfast
Just in case you need to know more stuff about the PHP configuration in your server, you can create a PHP file with the following contents:
<?php phpinfo(); ?>

When you access that file, it will give you all the info about how PHP is configured smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.