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

  • Isulong SEOPh Ulit??? Hehehe.. yan nalang palagi e title ko para, or baka, mapansin ni google, at biglang mag top 1!! hahahaha.. nangarap lang po ako,,, masama bang mangarap? 🙁 eto pala URL ko sa entry: […]
  • Switched to HHVM from PHP 7 This WordPress blog is currently running on HHVM (Out of curiosity, I just switched even if I haven't tested it yet locally). If you noticed some errors on specific pages in this blog, […]
  • Ano ang Talumpati at mga Halimbawa nito? TALUMPATI - isang buos ng kaisipan o opinyon ng isang tao na pinababatid sa pamamagitan ng pagsalita sa entablado. Layunin nitong humikayat, tumugon, mangatwiran, magbigay ng kaalaman o […]
  • Sun Broadband Wireless Internet: Is it worth it? The all time favorite “FUN IN THE SUN” summer slogan is ubiquitous once again as the spirit of summer reaches its peak. From the giant billboards along EDSA to the blasting advertisement […]
  • The Late Year-End Post and The Chronicles of The Blue Stickman Ang daming "the" no? Hehe. 2008 was really an unforgettable year to me and maybe to almost all of us. To continue what I have started last 2006 and 2007, I will write what I have achieved […]
  • Beijing Olympics Opening Ceremony Replay If you want to watch the most wanted and rare video of the Beijing Olympics 2008 Opening Presentation Full Video Replay then you've arrived at your destination! Watch the full video […]

Leave a Reply

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

six − two =

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