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

Problem displaying "scraped" XML data
I'm basicly having trouble displaying XML data scraped from an URL using cURL.

What the code

updating a single value to multiple non consecutive rows
I need to update the same value to multiple non consecutive rows. I need to add an experation date t

convert static html data into dynamic
hi all

i need to convert a website which has static above 2000 articles into dynamic and add

'210010106140040100' == '210010106140040101'
Debugging this simple line of a PHP script

Code: if($a == $b){ }
I've found that with val

PHP Script runs on CLI but not through web browser
I am running into an issue that I just can't seem to find the answer to. I have a Windows Server 200

upgrade from 4.7 to ECC 6.0
Hi all,
we are going to do an upgrade from R/3 4.7 to ECC 6.0. I need to know if i can find som

how to get different value in second view of webdynpro?
hello guys,

In ABAP webdynpro I am trying to create one application having two views.

FTP Programs
Here is a list of commonly suggested FTP Programs to use:

FileZilla
SmartFTP
CuteFTP

File upload issues
Hi Guys,

Can anyone see any issues with this code:
Code: $setImage= 'productimages/' . dat

Validation
Hello

I know this is a really vag question.

I need to have a input field on a form th

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