Re: PHP problem with self-made web server

From: Date: Fri, 12 Oct 2001 08:28:34 +0000
Subject: Re: PHP problem with self-made web server
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-4611@lists.php.net to get a copy of this message
Use php -q test.php Run php -h to list the help for other options. Regards, - Paul - ----- Original Message ----- From: "Peter Jukel" <pjukel@nospam.triplehash.com> To: <php-install@lists.php.net> 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: php-install-unsubscribe@lists.php.net > For additional commands, e-mail: php-install-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.install (#4611) next »