You are here: Re: command line and get user input « PHP Language « IT news, forums, messages
Re: command line and get user input

Posted by Rik on 07/24/07 16:34

On Tue, 24 Jul 2007 17:41:46 +0200, Jean Pierre Daviau <Once@WasEno.ugh>=
=

wrote:

> C:\Documents and Settings\Jean Pierre\Bureau>php -a
> Interactive mode enabled
>
> <?
> $userInput =3D readline('Enter something here: ');
>
> Fatal error: Call to undefined function readline() in
> C:\Documents and Settings\
> Jean Pierre\Bureau\- on line 2

RTFM <http://nl3.php.net/manual/en/ref.readline.php>:
Note: This extension is not available on Windows platforms.

So just use STDIN.

-- =

Rik Wasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация