RE: [PHP] executing a shell file

From: Date: Tue, 22 Aug 2000 22:29:26 +0000
Subject: RE: [PHP] executing a shell file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13036@lists.php.net to get a copy of this message
On Tue, 8 Aug 2000, Christensen, BruceX R wrote: > You could either rewrite the code below in PHP (the preferred method), > or save it as an external file, chmod +x it, and then use exec(), > system(), or passthru() to run the external shell script. I *know* I'm not the only one having problems with this. $filename = "foo.tar.gz"; $execme = "zcat " . $filename; exec ($execme, $output, $error); -- _Deirdre * http://www.sfknit.org * http://www.deirdre.net "We can always count on the British. Except for the Revolutionary War they've been perfect." -- Mel Brooks, on the first Concorde flight since the Paris crash.

« previous php.general (#13036) next »