You are here: Re: PHP5 - CLI ("php -a") help plse? « PHP Programming Language « IT news, forums, messages
Re: PHP5 - CLI ("php -a") help plse?

Posted by Jerry Stuckle on 01/02/06 17:55

zeltus wrote:
> Ahh, I found a reference at phpkitchen... it seems I have to use <? or
> mebee <?php to get php -a into interactive mode, and then use Ctrl-Z to
> force execution whenever I need it.
>
> Dunno why I need this tho' - what "mode" is it in if it isn't
> implicitly <?php... ????
>
> Bill
>

That's because php reads a file. If you give it a file name, it uses
that file. If not, it reads the file from stdin (the command line).

In the latter case, Ctrl-Z indicates the end of the file, so PHP can
then process the entire file.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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