Re: exec("mysql -h hhh -u uuu -pppp <test.php",$out,$bin);

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux