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?
Did you know?Explore Trending and Topic pages for more stories like this.
Thanks for your help
No comments posted yet

Your Answer:

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

Help adding strtolower( to my in_array
strtolower i need to add it to this to work, iuno how.

Code: $moderators = array('Admin', 'ba

Something Non-Traditional. Can we solve?
I have an idea for an application here. It's mostly flash, but it couldn't work without a somewhat n

Problem with PHP code- simple contact form
Hi Folks,
I'm relativily new to PHP; I know HTML and CSS stuff but I have a problem- I have a co

array_combine() trouble w/csv file
I have a problem with a piece of code I wrote to import some records from a csv file into mysql. I h

My query is being run with no results.
I have this.

Code: function DropUser($duser_id, $user_email, $user_username) {

Logic question
im wondering what's the best method to do the above list:

it is for alliance @ MMORPG game

Dealing with code in db query
I am dealing with C code and I need to make sure it is encoded some how to ensure its integrity and

how do i display data on a page from mysql
1 - do i use this code at the top of each of my page i wish to only alow access if there as been a s

Creating a function
Basically i wanna put all this code in a seperate file

Code: <?php

C++ Http request?
Code: string Response = "LOGIN_UNSUCCESSFUL"; System.Net.WebRequest request = Sy

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