note 89289 added to function.popen

From: Date: Mon, 02 Mar 2009 08:04:46 +0000
Subject: note 89289 added to function.popen
Groups: php.notes 
Request: Send a blank email to php-notes+get-151311@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... $handle = popen("cvs status info.php","r"); $str = fread($handle, 2096); echo $str; pclose($handle); 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: 209.41.74.194 Probable Submitter: 67.49.115.30 ---- Manual Page -- http://www.php.net/manual/en/function.popen.php Edit -- https://master.php.net/note/edit/89289 Del: integrated -- https://master.php.net/note/delete/89289/integrated Del: useless -- https://master.php.net/note/delete/89289/useless Del: bad code -- https://master.php.net/note/delete/89289/bad+code Del: spam -- https://master.php.net/note/delete/89289/spam Del: non-english -- https://master.php.net/note/delete/89289/non-english Del: in docs -- https://master.php.net/note/delete/89289/in+docs Del: other reasons-- https://master.php.net/note/delete/89289 Reject -- https://master.php.net/note/reject/89289 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151311) next »