Try: <?php $fp = popen(("/bin/ls"),"r"); while (!feof ($fp)) { $retvalue = fgets($fp, 4096); print $retvalue; } pclose($fp); ?>
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 specified > user. does apache needs root rights or suid on shell? target command? > > pleas help, tia. > simeon. > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Jim Barcelona mailto:[EMAIL PROTECTED] +39 3484 22 56 77 -- better living through php -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]