note 89288 added to function.proc-open
| From: | vitolini at gmail dot com | Date: | Mon, 02 Mar 2009 07:48:56 +0000 |
| Subject: | note 89288 added to function.proc-open | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-151310@lists.php.net to get a copy of this message | ||
Hi I am using the proc_open to get status information of a file from cvs... when i execute the php
from command line i get the output, however when i type it into the browser i don't receive the
output... Here is my code...
$desc = array(
0 => array('pipe', 'r'), // stdin
1 => array('pipe', 'w'), // stdout
2 => array('pipe', 'w') // stderr
);
$process = proc_open("cvs status -v info.php", $desc, $pipes);
$tmp = stream_get_contents($pipes[1]);
print "Result is : " . $tmp;
print "Length is : " . strlen($tmp);
proc_close($process);
exit();
Command line returns ...
Result is : File: info.php Status: Locally Modified
Working revision: 1.3 2009-03-01 23:30:25 -0800
Repository revision: 1.3 /m.......
.....
Length is : 565
On the webpage all is see is "Result is : Length is : "
When i check the FireBug, i don't see anything other than this data... I am plucking my hair
trying to debug this issue. How come the command line prints the output and not on the webpage?
Thanks,
Vito
----
Server IP: 64.71.164.2
Probable Submitter: 67.49.115.30
----
Manual Page -- http://www.php.net/manual/en/function.proc-open.php
Edit -- https://master.php.net/note/edit/89288
Del: integrated -- https://master.php.net/note/delete/89288/integrated
Del: useless -- https://master.php.net/note/delete/89288/useless
Del: bad code -- https://master.php.net/note/delete/89288/bad+code
Del: spam -- https://master.php.net/note/delete/89288/spam
Del: non-english -- https://master.php.net/note/delete/89288/non-english
Del: in docs -- https://master.php.net/note/delete/89288/in+docs
Del: other reasons-- https://master.php.net/note/delete/89288
Reject -- https://master.php.net/note/reject/89288
Search -- https://master.php.net/manage/user-notes.php