Home Top Entries FeedComments Feed Comment 496 Users Online

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

Share and Enjoy:
  • Ratimarks
  • Digg
  • del.icio.us
  • StumbleUpon
  • LinkedIn
  • Technorati
  • Facebook
  • Ma.gnolia
  • Yahoo! Buzz
  • Live
  • Reddit
  • Sphinn
  • Mixx
  • Google
  • BlinkList
  • Propeller
  • YahooMyWeb
  • Simpy
  • connotea
  • Spurl
  • Webride
  • Furl
  • co.mments
  • Wikio
  • Slashdot
  • Bumpzee
  • MisterWong
  • Netvouz

Earn Dollars While You Search!

If you search with Google, Yahoo, or MSN Daily and you don't earn a cent.

Why not search and get paid! 6,500 searches will earn you $25.00! Join Now!


Make More than $500/month at Home! Sign Up Now!

Legit Online Income, Absolutely No Scam!

No Registration or Sign Up Fees! Free $6.00 Upon Registration!


Need To Send and Receive Money Online Fast and Easy?

Sign Up with Paypal Now! Absolutely 100% Free!

Now you can Send and Receive Money Worldwide!





Leave a Reply