Re: exec, system , backtick

From: Date: Fri, 27 Dec 2002 21:47:25 +0000
Subject: Re: exec, system , backtick
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-129480@lists.php.net to get a copy of this message
how about : #!/usr/local/bin/php -q <?PHP $file = 'no_file'; if(!is_file($file)) $mess = "no such file"; else $mess = shell_exec("ls $file"); echo $mess."\n"; ?> regards, Maciek Ruckaber Bielecki On Sat, 28 Dec 2002, gamin wrote: > > "Maciek Ruckgaber Bielecki" <maciek@geekbunker.hn.org> wrote in message > news:20021227162847.W34717-100000@geekbunker.hn.org... > > try : > > <? PHP > > $message = shell_exec('rm file'); > > ?> > > > Tried that too, :-( no success > > gamin > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#129480) next »