On Sun, May 19, 2002 at 12:38:36AM -0500, Miguel Cruz wrote:
On Sat, 18 May 2002, Rafael Perazzo wrote:
Is there any way to ask the user to type the value of
a variable from stdin ? (like read in Pascal, or scanf
in C). I'm using PHP from command line.
$f = fopen('php://stdin', 'r');
Is there any way to ask the user to type the value of
a variable from stdin ? (like read in Pascal, or scanf
in C). I'm using PHP from command line.
Thanks
Rafael Perazzo
__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
On Sat, 18 May 2002, Rafael Perazzo wrote:
Is there any way to ask the user to type the value of
a variable from stdin ? (like read in Pascal, or scanf
in C). I'm using PHP from command line.
?
$f = fopen('php://stdin', 'r'); // this line answers your question
while ($l = fgets($f,
3 matches
Mail list logo