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" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > 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
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to