Re: passthru

From: Date: Thu, 12 Apr 2001 05:45:45 +0000
Subject: Re: passthru
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-48247@lists.php.net to get a copy of this message
"Michael Dickson" <midickso@indiana.edu> wrote in message news:B6FA1A3A.916%midickso@indiana.edu... > On the server itself (to which I have root access) I type: > > someProgram arg1 arg2 arg3 > > and it runs properly, returning the proper output to standard output (the > screen). I can do this from anywhere on the server (for example, from the > same directory where my php scripts are located, /var/www/html/blah), and I > can do it as the same user that apache runs as ('apache'). > > BUT, when I try: > > <?php passthru("someProgram arg1 arg2 arg3"); ?> > > it fails. I get no output at all. I'm just guessing since I can't access the PHP manual and since I don't know what program you're running here -- but perhaps "someProgram" is outputting to stderr by mistake. That's my only guess. Dean Hall. http://hall.apt7.com

« previous php.general (#48247) next »