Reply to Re: PHP5 - CLI ("php -a") help plse?

Your name:

Reply:


Posted by Pedro Graca on 01/02/06 18:09

zeltus wrote:
> I've tried using "php -a" and [...] I can't get it to do anything useful.
>
> What I hope it will do is accept input from me and return the results -
> am I on the right track or have I missed the point somewhere?

I usually use the -r command-line option on Linux; never tried the -a
interactive PHP thing.

Just tried it on Windows and (after solving a little quoting problem) it
worked ...


C:\Utils\php>php -r "echo date(\"Y-m-d\"), \"\n\";"
2006-01-02

C:\Utils\php>

--
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!

[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

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