Posted by The Natural Philosopher on 01/06/08 14:31
Daniel Klein 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
>
> But as you can see, it doesn't. I've tried Google'ing the answer to no
> avail.
>
> I'm using Windows/Apache/MySQL and:
>
> PHP 5.2.5 (cli) (built: Nov 8 2007 23:18:51)
> Copyright (c) 1997-2007 The PHP Group
> Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
>
>
> Daniel Klein
Not sure but shouldn't there be some <? ?> pairs in there somewhere?
Navigation:
[Reply to this message]
|