Reply to Re: php -r

Your name:

Reply:


Posted by Toby A Inkster on 01/06/08 15:10

Daniel Klein wrote:

> I had thought that this would work...
>
> C:\>php -r echo "test";

You need to escape certain characters from the shell. For most Linux
shells you could use:

php -r echo\ \"test\"\;

or (slightly easier on the eye):

php -r 'echo "test";'

Not sure what it would be on Windows, but give those two a whirl.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 7 days, 2:22.]

dhyana.pl/0.3
http://tobyinkster.co.uk/blog/2008/01/06/dhyana/

[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

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