note 94377 added to function.passthru
| From: | syedusmanajmal at gmail dot com | Date: | Sat, 31 Oct 2009 12:53:05 +0000 |
| Subject: | note 94377 added to function.passthru | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-162304@lists.php.net to get a copy of this message | ||
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?
----
Server IP: 69.147.83.197
Probable Submitter: 203.82.57.26
----
Manual Page -- http://www.php.net/manual/en/function.passthru.php
Edit -- https://master.php.net/note/edit/94377
Del: integrated -- https://master.php.net/note/delete/94377/integrated
Del: useless -- https://master.php.net/note/delete/94377/useless
Del: bad code -- https://master.php.net/note/delete/94377/bad+code
Del: spam -- https://master.php.net/note/delete/94377/spam
Del: non-english -- https://master.php.net/note/delete/94377/non-english
Del: in docs -- https://master.php.net/note/delete/94377/in+docs
Del: other reasons-- https://master.php.net/note/delete/94377
Reject -- https://master.php.net/note/reject/94377
Search -- https://master.php.net/manage/user-notes.php