note 94377 rejected from function.passthru by danbrown

From: Date: Sat, 31 Oct 2009 15:45:09 +0000
Subject: note 94377 rejected from function.passthru by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-162305@lists.php.net to get a copy of this message
Note Submitter: syedusmanajmal at gmail dot com ---- Hi, How can i display the standard output of a C executable in real time on browser? i tried following code <?php echo passthru("./myProgram"); ?> This displays the stuff on standard output only when the program ends executing i.e. the standard output does not ge displayed in the browser in real time. Is there a way i can show the standard output appear in browser in real time? In other words, myProgram is a huge program that runs for almost 40 secs. During these 40 secs, it displays many things on standard output from time to time. Is there a way i can display those output lines in browser as they appear in shell?

« previous php.notes (#162305) next »