note 25390 added to function.popen

From: Date: Sat, 21 Sep 2002 17:38:33 +0000
Subject: note 25390 added to function.popen
Groups: php.notes 
Request: Send a blank email to php-notes+get-37092@lists.php.net to get a copy of this message
Yet another workaround for not having bidirectional pipes in php. $Cmd = "bc 2>&1 << END\n" . "100+221\n" . "1+3*3\n" . "quit\n" . "END\n"; $fp = popen($Cmd, 'r'); $read = fread($fp, 1024); echo $read; pclose($fp); -- http://www.php.net/manual/en/function.popen.php http://master.php.net/manage/user-notes.php?action=edit+25390 http://master.php.net/manage/user-notes.php?action=delete+25390 http://master.php.net/manage/user-notes.php?action=reject+25390

« previous php.notes (#37092) next »