"Maciek Ruckgaber Bielecki" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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 >
Hi Maciek, I used rm as an example to illustrate what i want to do, basically i need to catch an error if it occurs and STOP the script from going ahead and include the error in a file for later examination. I would be using 'rm, unzip, tar, rpm' etc commands from inside a PHP script. Micheal Sims' post has something interesting. gamin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php