Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Server Side Programming
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 10-14-2009, 11:35 AM
  #1
wwuster
Novice (Level 1)
 
Join Date: Oct 2009
Posts: 1
iTrader: (0)
wwuster is an unknown quantity at this point
How do you display a page that needs to show progress?

I'm uploading a file to a server like this:

<form action="upload.php" enctype="multipart/form-data" method="post">
<input type="file" name="datafile" size="40">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000">
<input type="submit" value="Send">
</form>

upload.php is receiving the file fine. I am processing the uploaded file which may take minutes to do. Upload.php displays results as it processes the uploaded file. However the new page drawn by upload.php does not display until the entire uploaded file is processed.

Is there a way to have the new page display the progress of the processing?

thanks,
William
wwuster is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 10-16-2009, 02:09 AM
  #2
Sawtooth500
Lord (Level 16)
 
Sawtooth500's Avatar
 
Join Date: Nov 2007
Location: Chicago, IL. USA
Posts: 572
iTrader: (0)
Sawtooth500 is on a distinguished road
A PHP Upload Progress bar actually isn't the easiest thing to make.

Use this tutorial: http://www.ultramegatech.com/blog/20...gress-bar-php/

That tutorial requires you to have the APC plugin for PHP. Not all hosting providers support APC. If you google "PHP Upload progress bar" There are some other alternate solutions, but the generally require some sort of PHP plugin, which is where a friendly hosting provider.

The reason that you need to use a plugin with PHP itself to track upload progress instead of just using PHP code is because with PHP you don't have access to raw POST data - and an upload bar would require you to do so. Therefore, you need something coded in a lower level language than PHP to augment PHP to somehow access that raw POST data.
__________________
-Taras Hryniw

http://www.waltonstreetwebdesign.com
Sawtooth500 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 10:22 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.