readline() Fails in PHP for Win2000
| From: | Rick Emery | Date: | Mon, 18 Feb 2002 14:15:08 +0000 |
| Subject: | readline() Fails in PHP for Win2000 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85197@lists.php.net to get a copy of this message | ||
What do I need to do to allow the readline functions to work?
The following short program fails when run from the command line:
<?php
$line = readline("Input data: ");
print $line;
?>
Execution command and error message:
C:\>php -q myscript.php
<br>
<b>Fatal error</b>: Call to undefined function: readline() in
<b>C:\myscript.php</b>
on line <b>2</b><br>
My system:
Windows 2000
PHP version 4.1.1
I installed PHP from binaries.