|
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]
|