passthru() help


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

Hi everyone,
I'm new to the forum and to PHP. I have some pretty good experience writing shell scripts, but beyond that, I'm not much of a programmer. That being said, here's what I'm trying to do:
I'm using the passthru() function to run a program on the server. The server side program can take a few minutes to finish, but it does send data to stdout as it's running. While it's running, I'd like to give the user some sort of indication that the program is running. A progress bar would be fine, but I'd really like to be able to give them the output of the server side program as it becomes available.
So far, I haven't seen that there's a way to do this with passthru(). Should I try a different function? Is this even possible with PHP?
Thanks for your help

No comments posted yet

Your Answer:

Login to answer
184 Like 14 Dislike
Previous forums Next forums
Other forums

Checking if variable is 0 as opposed to NULL/Empty...
I'm trying to write some code that will retrieve a user's access level from my database and if it do

Problem with umlauts and UTF-8
Hello every1,

I'm creating my own little CMS at the moment and got some problems with the cha

Ball movement
I want to move a ball from one point to another and it should hit a group of balls at the other end

On page view, minus credit
Hello all, please, I need a little help with this script. I am charging one credit (credits can be p

Grabbing Values From an Array for Posting
I have a grid array that I am using with a form that when it hits the currently named test.php it lo

user data not transferring to new page
I'm a PHP learner. After an index.php page, the user goes to a login.php page. Both pages seem to

CHMOD script
Hi,

I need a script to read all files in a folder and set to 777.

Can anyone help out

Facebook status update API
Hello,

So, I'm trying to create my first Facebook application with PHP.

Basic ideas fo

How to generate a text file using php...?
Hi,
Can anyone give me code to generate a text file using php


Thanks in advance

frames get header location..
i have two frames, one top, one bottom. how do i do a form on the bottom frame that gives me the ur

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