Updating a progress bar during php scripts

Pretty much any progress bar that would be displayed would simply be faking the progress that is taking place. Follow the progress of a PHP script Page Request to server Server Parses Page -- Calls DB if needed in script Page is outputted to browser There is no page-Server interaction in a PHP script.

It's not that difficult to install, but you either have to have root access, or your hosting provider will need to do this for you. Installing APC on your Linux server Installing APC on your Windows server Important: Make sure to include apc.rfc1867 = on in your file after APC is installed. I have installed APC and i m using php version 5.2.3, apache version 2.2.4 . When i upload a file it does not show any error and shows that file has been uploaded successfully, But does NOT upload file in the destination folder. when i am uploading a file , all time during uploading progress bar does not move. i've try this with your code but there is the same problem. apc APC Support enabled Version 3.1.0-dev MMAP Support Disabled Locking type File Locks Revision $Revision: 3.151 $ Build Date Nov 8 2007 Directive Value apc.cache_by_default On apc.enable_cli Off apc.enabled On apc.file_update_protection 2 apc.filters no value apc.gc_ttl 3600 apc.include_once_override Off apc.localcache Off apc.512 apc.max_file_size 50M apc.num_files_hint 1000 apc.report_autofilter Off apc.rfc1867 Off apc.rfc1867_freq 0 apc.rfc1867_name APC_UPLOAD_PROGRESS apc.rfc1867_prefix upload_ apc.shm_segments 1 apc.shm_size 64 apc.slam_defense 0 On apc.stat_ctime Off 0 apc.user_entries_hint 4096 apc.user_ttl 0 apc.write_lock On any idea? Does this mean that this will cause problems with two concurrent file uploads? progress bar for one person fails if another person starts uploading?

db initilze progress start db insert update progress bar 1% db insert update progressbar 3% dbinsert etc.. just echo out the update to browser and do the next db insert...

Originally posted by The Prohacker Not really, you can have the page output an update during the mysql updates...

Alternatively, you may just have a lot of PHP code that you are running and want to give periodic updates as to how complete you feel the process is at that time.

The benefit in these cases is that you know what percentage of the work is done (or can make a good guess). Reprinted with permission by Pearson Education; All rights reserved. First, Listing 9.3.1 illustrates a simple example: You are waiting for a task to end and display a waiting screen during that time using just text.

mrabochiy.ru

66 Comments

  1. Pingback:

  2. eric   •  

    Bodies of civilians, especially those killed in misdirected attacks, often are taken from remote areas to Mogadishu to draw media attention."These local farmers were attacked by foreign troops while looking after their crops," Mohamed told reporters.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>