Re: passthru()/exec()/system() Errors

From: Date: Wed, 30 Apr 2003 07:42:18 +0000
Subject: Re: passthru()/exec()/system() Errors
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145735@lists.php.net to get a copy of this message
On (30/04/03 01:42), Robert Hinojosa wrote: > > I can do passthru("ls -la"), etc. just fine. but I am unable to do a > passthru("fping .") > > Fping is a very useful utility, and I'd very much like to use it in my PHP > scripts but am currently unable to. Via command line, it works perfectly. > But through Apache, I get no output. [snip] > Fping is in /usr/sbin, but I've also tried moving it to /sbin, /bin, the > same dir as the PHP script, chown'ing to nobody, etc. > > Any suggestions? I've had many problems with permissions in my command > executions, but never this much. Try it like so : <? $host = "www.php.net"; $fping = /usr/sbin/fping -sdC 1 $host; echo $fping; ?> HTH j.

« previous php.general (#145735) next »