Reply to Re: Keyboard input using command line PHP under Windows

Your name:

Reply:


Posted by Daniel Klein on 01/23/08 01:08

On Sun, 20 Jan 2008 14:26:41 -0800 (PST), BDthatsme
<bdggetcetc@donnelly-house.net> wrote:

>I can't get any of the various examples of keyboard input to work
>using command line PHP.
>
>I have Windows XP Pro SP 2 and PHP 5.1.6 (cli) (built: Aug 23 2006
>16:35:53).
>
>I can't find any info about why it doesn't work, or a way that does
>work. Any suggestions?
>
>examples of attempted variations: (and I've tried others)
>
>$psLine = fgets (STDIN, 1024); // phpa.php at http://david.acz.org/phpa/
>
>stdin = fopen("php://stdin", "r"); // PHP_Shell-0.3.1
>$l = fgets(stdin);

PHP variables must be prepended with a '$'. So change 'stdin' to
'$stdin' (in both places) and your last variation should work.

Daniel Klein

[Back to original 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

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