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