11:03 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-INST] cannot read output with fgets() from popen()
Try:
Instead.
[EMAIL PROTECTED] wrote:
> i try to:
>
> $fp = popen("/bin/ls"),"r");
> $retvalue = fgets($fp, 4096);
> pclose($fp);
> pri
Try:
Instead.
[EMAIL PROTECTED] wrote:
> i try to:
>
> $fp = popen("/bin/ls"),"r");
> $retvalue = fgets($fp, 4096);
> pclose($fp);
> print $retvalue;
>
> why $retvalue is always "" (blank)? config is: apache, php, suse... all
> newer versions... and standard configurations... apache runs on a
i try to:
$fp = popen("/bin/ls"),"r");
$retvalue = fgets($fp, 4096);
pclose($fp);
print $retvalue;
why $retvalue is always "" (blank)? config is: apache, php, suse... all
newer versions... and standard configurations... apache runs on a specified
user. does apache needs root rights or suid on