Re: Command line php....

From: Date: Wed, 06 Aug 2003 03:11:41 +0000
Subject: Re: Command line php....
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-158391@lists.php.net to get a copy of this message
4.3.2 Ray Hunter wrote:
Technically, yes it should however, I think this is a bug...are you running php 5b? -- BigDog ----- Original Message ----- From: "John Nichel" <jnichel@by-tor.com> To: <php-general@lists.php.net> Sent: Tuesday, August 05, 2003 9:07 PM Subject: [PHP] Command line php....
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
-- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#158391) next »