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

  • Facebook Proxy, Friendster Proxy, MySpace Proxy Facebook Proxy, Friendster Proxy and MySpace Proxy are the hottest keywords that were used in searching for proxy sites to gain access to your beloved online profiles. I know why you were […]
  • 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. […]
  • How to get to the Philippine Senate Office If you're here because you are googling for a guide of how to get the the Philippine Senate office easily, then, congratulations! You came to the right place, at the right time, in the […]
  • phpformgen problem with PHP5 Okey, Please don't ask why I am blogging about this. If you want to ask why, it is because I want to! Hehe. Maybe there's another reason why? This one is a pretty old problem that I've […]
  • It’s a great time once again! For a tropical country like the Philippines, it's just amazing to find a towering and blinking pine tree adorned with colorful balls and danglings in almost every home. “It's more fun in […]
  • Spring Break Bail Out My friend in the U.S. sent me an email today. His email recounted his craziest and coolest spring break ever. Attached, also, were photos taken during his wonderful Florida experience. […]

Leave a Reply

Your email address will not be published. Required fields are marked *

one + 8 =

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