var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
PHP filesize limits
I am putting together a script to allow users to upload files to my server through my members area.
Does anyone know if there is a limit on the size of the files that can be transfered using PHP?
One of my programmers has told me the limit is 2mb without the script timing out, does anyone know if this is true, and if so any way around it?
All advise appreciated.
Not sure the exact limit (there are so many tweals) I know it is way more the 2MB though.... Also depends on your server resource and link speed.
GS RichCopy 360 Enterprise
- Voted #1 for data migration and replication in terms of performance and features. Replicate data across between servers in the same network, WAS, or even across the internet
if you own your server, you can change the file size limit from 2 MB to larger - just modify the file php.ini
some webhost allow to do on shared hosting and php.ini besed per user directory.
Originally Posted by
Ask kindly your webhost to increase the limit to a reasonable size (most hosts I use have set the limit to 8M).
my host set it to 5MB. I personally request them to remove it after some time.
Is there a way to change it in your .htaccess file? I know I can change certain php variables like turing global vars on or off etc. this way. (CPanel User)
By creating a new PHP info file with:
you should be able to run that file from your web browser and see the upload limit size before time out occurs.
<?php @ phpinfo (); ?>
Even if you change this to a large number, the browser may timeout waiting for your file to transfer over. There is a reason for the limit
In order to understand recursion, one must first understand recursion.
If you feel like it, you can read my
Signal > Noise