Jump to content

Rookie Progressbar Question


isimpledesign
 Share

Recommended Posts

0 down vote favorite

 

 

I know this is a rookie question but whats actually happening with a progress bar what is it actually monitoring.

 

I figure the only way to understand it is to get this answer.

 

when i run a piece off php code how can i get a progress bar to monitor it while it runs untill completion off the code??

 

most progressbars i have seen are file upload and download. is it monitoring the amount off requests the browser sends when upload the file so its monitoring the bytes that are being transfer?

 

Can someone please give me a better understanding off whats going on?

 

I just want a simple progress bar to monitor progress while my php code is running so say if i am running this simple code to backup a websites files and folders, how could i do this???

 

<?php if ( isset($_POST['backup']) ) {
      if(exec("cd {$_SERVER['DOCUMENT_ROOT']}/wp-content/plugins/s3bk/files;tar -cvpzf backup.tar ".get_option(    'isd-server')."")) { echo "done"; } 
}
<form id="backup" method='post' action=''>
<input type='submit' class="button" name='backup' value='backup'>

 

sorry for the rookie question just really want to get my head around whats actually happening???

 

Thanks

 

Link to comment
Share on other sites

This thread is more than a year old. Are you sure you have something important to add to it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.