Use php -q test.php

Run php -h to list the help for other options.

Regards,
- Paul -

----- Original Message -----
From: "Peter Jukel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 12, 2001 5:41 AM
Subject: [PHP-INST] PHP problem with self-made web server


> Hi
>
> I need to run PHP from the command line through my web server which I am
> building.
>
> However, when I issue a command such as
>
> php.exe test.php > result.txt
>
> where test.php contains:
>
> <html>
> <?php
>   echo $SERVER_NAME;
> ?>
> </html>
>
> and I get the error:
>
> X-Powered-By: PHP/4.0.5
> Content-type: text/html
>
> <html>
> PHP Version in use:
> <br>
> <b>Warning</b>:  Undefined variable:  SERVER_NAME in <b>c:\test.php</b> on
> line <b>4</b><br>
> </html>
>
> I am also not able to pass parameters to a PHP script through the
> QUERY_STRING environment variable.
>
> Do I need to set other environment variables before calling the PHP
> interpreter to enable certain variables?  If so, which ones?
>
> I am using Windows.
>
> Thanks in advance
>
> Regards
>
> Peter
>
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to