i do not get any output from mysql except form echo $bin that displays 1 ? <?php exec("mysql -h hhh -u uuu -pppp <test.php",$out,$bin); print_r($out); echo $bin; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php