AW: [PHP-WIN] Command Line
| From: | (Sven Schnitzke) | Date: | Fri, 11 Apr 2003 11:19:43 +0000 |
| Subject: | AW: [PHP-WIN] Command Line | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-19391@lists.php.net to get a copy of this message | ||
Hi,
1) you might want to use php-cli.exe because it leaves out the
html makeup of the output.
2) try php -r "echo 'test';" (i.e. use double quotes surrounding the code)
this is required by windows. If you need double quotes in your code
escape them using a backslash e.g.
php-cli -r "echo \"test\";"
--
Sven
> -----Ursprüngliche Nachricht-----
> Von: irwan nurwandi [SMTP:arjunatea@yahoo.com]
> Gesendet am: Freitag, 11. April 2003 11:59
> An: php-windows@lists.php.net
> Betreff: [PHP-WIN] Command Line
>
> dear all ,
>
> I'm try to execute php command from the command line.
> I used php 4.3.1 for windows
>
> when I try to run the php script on command line by
> type :
> C:\PHP>php -r 'echo "test"'
>
> there some error like below :
>
> Error in argument 1, char 2: option not found r
>
> and when i used help by type
> C:\PHP>php -h
> I couldn't see an option for -r in the help list and
> there's no explanation also.
>
> but if I execute php script located in a file (I save
> the script in file: script.php) by type :
>
> C:\PHP>php -f script.php
>
> the script in a file running well !!!
>
> any suggestion ??
> help me please ....
> I wanna use the -r option
>
>
> best regards
>
> Irwan Nurwandi
> Indonesia
>
>
> =====
> ============================================================
> kemanapun takdir Engkau pergilirkan
> kan kurindu slalu pertemuan dengan-Mu
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms, and more
> http://tax.yahoo.com
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php