Using system() and bringing back the results


Posted on 16th Feb 2014 07:03 pm by admin

I am aware that you can use system() within PHP to execute system commands, but I was wondering if there was a reasonable way to bring back the results every second.

For example, I want a web based interface to put some files in a RAR archive. It would need to execute a command on the server (CentOS 5) to use rar. When you use that command, there is a progress bar that gets drawn in the console window with the progress of the RAR'ing, much like wget.

Did you know?Explore Trending and Topic pages for more stories like this.
I'm wondering if there is a way to somehow grab that progress bar and put it out on the page so I can see how far along the RAR has gone.

Thanks
No comments posted yet

Your Answer:

Login to answer
70 Like 23 Dislike
Previous forums Next forums
Other forums

controlling/creating accounts with privileges
hi all,
i'm trying to figure out how i can create/control account with privileges, for instance a

Post, not working, please help
The error is:
Method Not Allowed
The requested method POST is not allowed for the URL /student

cURL Sending File as Post
This is a bit complicated, I'm just hoping someone else has run into this and knows how to do it a d

I need help with formatting date from mysql! with php!
Hello guys

*Note: this is a php question not MySQL question, please do not move it to mysql s

image upload script not working with png
The basic process of this php code is to take the submitted file, convert it to a small JPG thumbnai

How to load mysql (and other) extensions into PHP
How to load mysql (and other) extensions into PHP PHP Development forum discussing coding practices,

How to create a static html menu from a database
Hi,

I have built a small cms which allows me to create simple html pages and then upload them

Snapshot from video
anyone knw how to make a snapshot maker from avi n mkv format.
for example if i give a direct lin

PHP header help!
Hi all I am trying to get this php page to refresh every 5 seconds on my phone which is an aastra 48

RTF fomatting to email content
Im trying to sen an email with content is picked up from a rtf-file (file_get_contents('*.rtf'). Mai

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash