if I do a...

$name = fread ( STDIN, sizeof ( STDIN ) );

I only get back the first character entered.  How do I accept exactly
what is entered?

Leif K-Brooks wrote:

STDIN is a file reference. Use the standard file functions (fread, for example) on it.

John Nichel wrote:

How do I capture standard input?

<?php

$name = STDIN;
echo ( "Hello " . STDIN . "\n" );

?>

????








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



Reply via email to