NYCPHP Meetup

NYPHP.org

[nycphp-talk] Uploading file size issues

Andrew Yochum andrew at plexpod.com
Thu Jul 27 12:42:12 EDT 2006


On Thu, Jul 27, 2006 at 12:24:38PM -0400, Nelly Yusupova wrote:
>    Hello Corey,
>     
>    I had the same problem with an upload script that I wrote.   To fix the
>    problem you will need to change the following settings in the php.ini
>    file:
> 
>    upload_max_filesize, post_max_size, memory_limit, upload_tmp_dir,
>    max_execution_time
> 
>    You can also use .htaccess file to change these settings.  The .htaccess
>    file will need to be created in the local directory where your script
>    resides.
> 
>    My .htaccess contains the following entries:
> 
>    php_value upload_max_filesize 200M
>    php_value post_max_size 200M
>    php_value memory_limit 200M
>    php_value upload_tmp_dir 200M
>    php_value max_execution_time 50000
> 
>    Hope this helps.

Nelly's input is spot on.

Also be sure that apache's LimitRequestBody directive is unlimited (0)
or set to an adequate value.  That precedes PHP's ini values.

HTH,
Andrew
-- 
Andrew Yochum
Plexpod
andrew at plexpod.com
718-360-0879



More information about the talk mailing list