note 16845 added to function.popen
| From: | simeon at bermuda dot ch | Date: | Thu, 15 Nov 2001 18:21:15 +0000 |
| Subject: | note 16845 added to function.popen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-20880@lists.php.net to get a copy of this message | ||
i got a problem with popen().
i use this code:
$command = "/bin/ls";
$fp = popen($command, "r");
$response = fgets($fp, 4096);
pclose($fp);
why $response is always empty?
i use actual versions of php, suse linux and apache. it all runs on a quietly standard
configuration.
is there any concern about security?
execute rights?
any help appreciated.
tia
--
http://www.php.net/manual/en/function.popen.php
http://master.php.net/manage/user-notes.php?action=edit+16845
http://master.php.net/manage/user-notes.php?action=delete+16845
http://master.php.net/manage/user-notes.php?action=reject+16845