You are here: Re: prompting the user on command line « PHP Language « IT news, forums, messages
Re: prompting the user on command line

Posted by bob.chatman@gmail.com on 02/14/07 19:32

On Feb 13, 12:53 pm, "Jean Pierre Daviau" <O...@WasEno.ugh> wrote:
> Hi everyone,
>
> Is there a way to prompt the user for input on the command line
> apart from passing arguments at the start of the program?
>
> Like
> getchar() --- C
> prompt("input", in) :---javascript
> etc.
>
> --
> Thanks for your attention.
>
> Jean Pierre Daviau
> --
> windows Xp
> asus p4 s533/333/133
> Intel(R) Celeron (R) CPU 2.00 GHz
> Processor Radeon7000 0x5159 agp

Although not widely used, PHP is just as capable of being used as a
command line language as perl or python or C. The functions in PHP
work quite the same as the ones in the other languages. Here are a few
entries in the php.net documentation that will help you out.

http://us3.php.net/manual/en/function.sscanf.php
http://us3.php.net/manual/en/function.fgets.php
http://us3.php.net/manual/en/function.fgetc.php

http://us3.php.net/manual/en/features.commandline.php

 

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

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