Posted by Daniel Klein on 01/06/08 14:27
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
Navigation:
[Reply to this message]
|