Gert Cuykens wrote:
BINGO :)
Indeed.
ERROR 2005 (HY000): Unknown MySQL server host 'hhh' (1)Array ( [0] => ERROR 2005 (HY000): Unknown MySQL server host 'hhh' (1) ) 1 Can you explain a bit more what this do ? 2>&1 For example will i only get stderr or do i get stdout and stderr messages ?
The 2>&1 syntax redirects stderr to stdout, it does not do anything with stdout. So yes, you will still also get stdout messages.
This no longer has anything to do with PHP. I suggest you Google for info on Linux pipes.
-Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php