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.

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

php redirecting
i wont open a new thread but i have a question about redirecting....
i wonder why my code doesnt

Firefox displaying PHP source code??
Currently testing a site thats almost built, am going to be including php on a sidebar on all pages

check_changed_data - I can't get data from the called method event
I use check_changed_data to trigger my event method.

The method delivers er_changed_data.

Adding meta tags under Zend FW
Hello there, recently has come to my hands the FTP of a website which is running under Zend, I would

PHP arrays into arrays need help
Hello
I am trying to highlight the days on my calendar based on the dates that i have in my datab

Change Age automatically
hi guys . im new to php , is it possible to change age value in mysql automatically when year change

filesize() returns 0
I have a socket program that runs in an infinite loop, listening for connections, in this socket I h

Windows Authentication
I have a website which is windows authenticated.
now i want something more on this application.<

ereg_replace in Wordpress
Heya - so I'm working on this site: http://world-of-smiles.theportlandco.com/new-patients

The

Need help making a blockquote and line items conditional
I have some code I bought a few years ago that allows my clients to update content on their site usi

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