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

  • Sony PSP (Playstation Portable) Console Root Folders and Files In case you accidentally deleted your root folders or you have a new memory card with no folder, here are the root folders and some files that is necessary the make your PSP Console […]
  • RTHDCPL.EXE – Illegal System DLL Relocation If you're here looking for ways of how to fix this RTHDCPL.EXE - Illegal System DLL Relocation error, you've come to the right place.Here are the symptoms of the problem and how to fix it […]
  • Grand Theft Auto 4 Cheats A lot are looking for Grand Theft Auto 4 Cheats, including me. In here, I'll be creating my own list of Grand Theft Auto 4 Cheats soon. Just stay tuned for the updates regarding this post […]
  • 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 […]
  • Blue Stickman Tribes IQ Puzzle: Hints, Tips and Mechanics To all IQ Puzzle fanatics out there, this is what you've been waiting for! The Tips, Hints and Mechanics of the 2nd Blue Stickman IQ Puzzle. After the success of the first IQ Challenge, […]
  • Kansan What is a Kansan? a Kansan is a native or resident of Kansas, based on my research. Kansan is also of or having to do with the second period of glaciation in North America, beginning about […]

Leave a Reply

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

4 × five =

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