RE: [PHP] flash/php file uploader

From: Date: Mon, 11 Dec 2006 22:35:13 +0000
Subject: RE: [PHP] flash/php file uploader
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-245720@lists.php.net to get a copy of this message
> -----Original Message----- > > Hi > > Sorry if this is considered off topic, but do you know of any code > examples/libs with a flash/php file uploader with progress bar? > > I've googled for a while but the scripts I find won't work. I'm using > Firefox 2 and Flash player 9 on an intel Mac if that tells you anything? > > Or should I ask somewhere else? > > Thanks for your time. > > Emil The problem with having a "real" progress bar with PHP is that by default PHP does not have a callback function so you won't know the status of the uploaded file until it's complete. One way of overcoming this is to use a combination of AJAX+Perl/CGI instead of PHP. (Most LAMP servers can also run CGI scripts) An example of an upload progress bar written in AJAX+CGI is Filechucker. Our company purchased a license for use on one of our sites, its cheap and works great. I have also seen custom PHP extensions that add the callback method, but they require you to recompile PHP and in the end we decided to go with the CGI solution as it was pretty much plug and play. -B

« previous php.general (#245720) next »