Reply to Re: php -r

Your name:

Reply:


Posted by Rik Wasmus on 01/06/08 15:08

On Sun, 06 Jan 2008 15:27:17 +0100, Daniel Klein
<danielk@featherbrain.net> wrote:

> Does anyone have a simple example of using 'php -r <code>' ?
>
> I had thought that this would work...
>
> C:\>php -r echo "test";
> PHP Parse error: syntax error, unexpected $end in Command line code
> on line 1

As always, if you have a space in your command line argument, you should
quote it, so either:
php -r "echo 'test';"

or

php -r echo('test');

--
Rik Wasmus

[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

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