News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Ian Selby's Blog:
Uploading Large Files With PHP
September 14, 2007 @ 13:03:54

Ian Selby, working for a startup and building a lot of code up from scratch came across a problem - the upload of pretty large files via PHP:

I have found myself in a position where I am writing scripts that may need to upload fairly large files. My scripts were timing out, and I couldn't seem to figure out why. For the unitiated, there are some standard things that you usually do to both your php.ini and in your script in this situation [...] However, it turns out there are some other php.ini config variables that you may need to look at.

The "usual suspects" list includes changing the max_upload_size value and adjusting the script timeout. The other settings he mentions, though, are things like memory_limit, post_max_size and max_input_time to help increase the default times that PHP uses on most page executions.

0 comments voice your opinion now!
upload large file phpini setting timelimit size upload large file phpini setting timelimit size


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Security Tips #17 & #18 (When to Secure & File Uploads)

DeveloperTutorials.com: Upload Files to MySQL using PHP Tutorial

Ruslan Yakushev's Blog: PHP on IIS: MonitorChangesTo setting in FastCGI

SitePoint Web Tech Blog: How to Test Multiple Websites on One PC With Apache Virtual Hosts

PHPClasses.org: File upload progress meter for PHP 4, at last!


Community Events

Don't see your event here?
Let us know!


example opinion voicesoftheelephpant list laravel community extension library podcast security release language introduction framework api interview version laravel5 php7 series

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework