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

  • Huawei Mediapad Review: The Cheap but powerful Android tablet As we all know, the year of the Water Dragon is finally here! It is only natural for people to adorn themselves with something that has to do with this ferociously fanged mythical […]
  • Wii Night Update: Just Received My Second BlogBank Check! Eight lucky bloggers received their first quarter BlogBank earnings during the BlogBank's Wii Night at Red Box, Greenbelt 3. Macuha.com, Codamon.com, BaklaAko.com, Man-Blog.com, […]
  • My $6.66 income brings me to the Top Spot! Yey! after posting my adsense earnings, I made it to the top spot at davaoblogs.com yesterday!(ang baba ng kaligayahan ko pag pasensiyahan niyo na po...). Wala lang masaya lang me.. dati […]
  • 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 […]
  • Mafia Wars Cheats, Secrets and Techniques that you must know! If you're playing Mafia Wars, I bet you want to know cheats, techniques, bots, secrets, glitches and loopholes about it. My cousin Jen asked me if I know some Mafia Wars Cheats. I told her […]
  • Batang Yagit got blogged! Batang Yagithttp://www.batangyagit.comThis blog is about the series of spectacular events that happens in a life of a kid that has nothing to do with life... [Ahhhhhh... just a translation […]

Leave a Reply

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

11 − 2 =

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