News Feed
Sections




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

SitePoint PHP Blog:
How to Upload Large Files in PHP
August 17, 2010 @ 08:44:18

On the SitePoint PHP blog today Craig Buckler talks about uploading large files in your PHP application. He points to two other resources - this manual page and this introductory tutorial about handling file uploads to get the ball rolling.

One of the most popular uses is image uploads. Your users can submit photographs from a form without resorting to FTP or other convoluted methods. HTML5 and Flash also permit drag and drop, so the operation is likely to become easier as browsers evolve. This is where the problems can begin.

He points out the large size of the images most modern cameras work with and how PHP, with its basic settings, can't handle a lot of the resulting images. He mentions the upload_max_filesize and post_max_size settings you can set in either your php.ini or via an .htaccess (or even in your script). There's also a few helpful comments with more tips on large file handling.

1 comment voice your opinion now!
upload large file tutorial phpini setting


blog comments powered by Disqus

Similar Posts

Web Developer Juice: PHP Magic Functions: Best Part of Object Oriented PHP - Part 1

Gonzalo Ayuso: Integrating WebSockets with PHP applications. Silex and socket.io playing together.

Sridhareena.com: phpMyAdmin Installation Tutorial

Brian Deshong's Blog: Who’s Online with PHP and Memcached

James Fuller's Blog: Adding a Session Flash Message to your site in Lithium PHP


Community Events





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


release bugfix library package community zendserver laravel opinion series podcast deployment tips api framework voicesoftheelephpant introduction language install symfony interview

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