Tracking the tools that decentralize the media. tools process ideas resources eventsav

unmediated

 

August 17, 2004

PHP file uploads (CGI::Upload)

Using PHP to handle file uploads is a bad idea. It does so many aspects of the problem badly that you're never going to win. The single biggest problem is that PHP allows huge file uploads to affect memory even when you're going to reject the file as too big.

Perl is better as a whole; this CGI::Upload class makes more sense at the first look than any of the PHP classes I've seen. But really this needs to be integrated with the web server, using something like mod_upload.

Related links: del.icio.us / lucas_gonze / httpupload.


Posted by yatta at 04:56 PM