Can someone tell me why php waits for me to input something before it prints out the first line of the code below? Shouldn't it echo out the first line then wait for my input?

#!/usr/local/bin/php
<?php

echo ( "Enter MySQL admin username : [root] " );
$username = rtrim ( fgets ( STDIN ) );
echo ( "\n\n\nThe username is...." . $username . "!!!!\n\n" );

?>


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to