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

Image upload - determine folder
I have an upload script that may be accessed from different directories. Problem is, the script is m

Help! refer to a friend script with captcha code
Hi guys, I am posting on here in desperate need for some help with an ongoing search I have been doi

question about n
I was looking at some of the things you could do with php and one of the things I have tried is n.<

gather checkbox data from form into email
Hello all,

First, i'd like to thank everyone who responded to my previous posts regarding set

Stopped working!
So I had to change some stuff, none of it major. Stuff like the extension_dir and such. BEFORE I did

Simple Scraper... Weird Output
Okay, maybe I just need a Blue Monster and some sleep, but....

I'm scraping a ringtone site

str_replace help
I am thinking str_replace is my only option to filter outputs from my database to convert them to sa

Phase Error I can't seem to find :(`
Hey guys, I can seem to find my phase error on this. I am getting this error

[error]
Pars

preg_replace question
Hello!!

I hope someone can help me with preg_replace.

I load two tables from an extern

How can I get my program to read a larger array ??
Hi:

I have this program that reads from an array to do calculations. The array are just t

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