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

multipart emiail forms
Hi All,

I am new to the boards and I've been working on a form (which is rather massive, imo

Am I setting up my sites oldschool?
Ok,

When I create a site I open a basic template that I have created that consists of a css f

UTL File problem
Hi
I have a file in certain path with the following permissions (The file is a dummy file witho

Simple image grab script.
I was wondering if it was possible and if anyone knew how to make a simple php script that looks at

cURL error
So here is my code... I got it off of here... http://www.youtube.com/watch?v=XcgQUsorF_8
Because

pagination numbering pattern
Hello,

I have following code which works great for pagination. but i have small issue now.

Preventing blank or already entered values
Im trying to learn how to place a read file line by line and prevent duplicate entries and also BLAN

Error: SQL Syntax; Line 1
Code:

<?php require "global_settings.php"; ?>
<title&g

Solution to the FindControl problem
I have seen may posts about having problems with the FindControl method. Most seem to come about bec

Blank record injected into database
I always found several blank records inside my database, although $SESSION is required to insert the

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