Stephan,
There's a directive in php.ini called "display_errors". If you set it to "Off" it will suppress all error and warning messages your script may spit out. Placing a local copy of php.ini in /usr/bin/php with the above directive should do the trick since php automatically looks for for a copy of php.ini in the executable directory. On a side note, if you're doing shell scripting in PHP you might be interested in checking out http://gtk.php.net/. Andrei Zmievski has produced a lovely little bind to the GTK Toolkit which allows for client-side GUI programming with PHP. The doc's are still pretty sketchy at the moment (the binding is only on 0.0.4) and are presently hiding in CVS, but it's showing great promise!! HTH,
Cheers,
Geoff A. Virgo