AJAX Upload

In good programming languages there is almost always more than one way to accomplish a goal, PHP is no different. Here we have two very different methods for showing an AJAX progress bar during a file upload which were recently discussed by bloggers Tomas Larsson and Joshua Eichorn.

Tomas describes his approach in Asynchronous file upload with AJAX progress bar in PHP using Prototype combined with PHP to accomplish his effect. Toss in a derivative of MegaUpload for server side receiving and monitoring of the upload, and you have a complete package.

Going a different route, Joshua provides PAFUPMU, a set of classes to show upload progress using HTML_AJAX. With any PHP version newer than 4.3.7 or 5.0 it provides similar functionality to Tomas’ solution. For older versions of PHP you either need to add a patch, or end up with a basic animation and no progress bar (reminded me a bit of KIT from Knight Rider, or the Cylon oscillating faceplate, pick one).

Although somewhat different approaches, both methods do agree on using hidden iframes to allow file uploading.

SOURCE: http://devzone.zend.com

More from my site

  • Paypal: Personal Account or Premiere/Business Account? Many are so skeptical whether to upgrade their Paypal account to Premiere/Business or not. Googling for tips, cons, pros, and opinions of what should be the best Paypal account that suits […]
  • I’m Planning to Go Abroad this 2008! Last May of 2007 my family and I went to a trip to Bohol, I had a lot of fun basking under the sun and watching dolphins swim across the sea. This summer of 2008, we are planning to go […]
  • Dora the Explorer Games I'll be posting Dora the Explorer Games available for download here soon. I'll be collecting Dora the Explorer games that are for free, and provide you a download link for those games. […]
  • Convert your WordPress blog into a mobile app for free If you're already an expert in "Progressive Web Apps" and you already have a mobile app version of your WP blog or non-WP blog, then this post is not for you. For those who don't have […]
  • How to Find a Lost Phone Inside a Very Small Room? I keep on asking that stupid question to myself. I really can't find my phone inside this very small room. I already checked every inch of the floor, every corner, up, down, left, right, […]
  • The Call by Regina Spektor This is the ending song of The Chronicles of Narnia: Prince Caspian. To listen to the song, play it below: It started out as a feeling Which then grew into a hope Which then turned […]

Leave a Reply

Your email address will not be published.

5 × 1 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.