News Feed
Sections




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

Christian Stocker's Blog:
Upload Progress Meter extension 0.9.2 released
January 22, 2009 @ 09:36:38

Christian Stocker has released the latest version of the uploadprogress extension to the PECL repository (0.9.2). The package allows the code to track the progress of an upload automatically.

The main new function since 0.9.1 is uploadprogress_get_contents($id), which allows you to analyse the content of an uploading file during the upload and do appropriate measure (for example warn the user, that he doesn't upload a supported video format). You have to enable this feature in php.ini to make it work. This feature was provided by Ben Ramsey, so you have to poke him, if something's wrong with it.

A simple example of it in action is also included (in the /examples subdirectory off of the PECL page) showing how to upload a file, get the progress and - most importantly - how to get useful error messages out of it.

0 comments voice your opinion now!
upload progress pecl extension example contents analyze


blog comments powered by Disqus

Similar Posts

Hasan Otuome's Blog: PHP Documentation Tips

Pierre-Alain Joye's Blog: PECL Zip 1.5.0, features additions, modify OpenDocument

Zend Developer Zone: PHP Abstract Podcast Episode 27: Introducing PECL Picks

Michael Kimsal's Blog: Why do browsers still not have file upload progress meters?

Gonzalo Ayuso: How to run a Web Server from a PHP application


Community Events

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


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

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