note 39969 added to function.system

From: Date: Tue, 17 Feb 2004 10:04:34 +0000
Subject: note 39969 added to function.system
Groups: php.notes 
Request: Send a blank email to php-notes+get-65263@lists.php.net to get a copy of this message
BUGFIX for the mysystem() function, posted by n-jones. <?php function syscall($command){ if ($proc = popen("($command)2>&1","r")){ while (!feof($proc)) $result .= fgets($proc, 1000); pclose($proc); return $result; } } ?> Hello from Russia! :) djem. ---- Manual Page -- http://www.php.net/manual/en/function.system.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39969 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39969&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39969&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#65263) next »