php-install Digest 12 Oct 2001 20:44:53 -0000 Issue 503

Topics (messages 4611 through 4616):

Re: PHP problem with self-made web server
        4611 by: Paul Gardiner
        4613 by: Peter Jukel
        4615 by: Peter Jukel

PHP + IMAP + FreeBSD (Jailed)
        4612 by: Jeremy Johnston

Re: cannot run php within html
        4614 by: Carlos Augusto Abarca

CGI Error.The specified CGI program misbehaved by not returning a complete set of HTTP 
headers
        4616 by: Jon Anunson

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


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

--- End Message ---
--- Begin Message ---
<<Paul:
 Use php -q test.php

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

Thanks, Paul.  I'll give it a try.

Regards

Peter


--- End Message ---
--- Begin Message ---
<<Paul:
 Use php -q test.php
>>

Paul, this doesn't work.  I get the same output.

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

Neither does this.  Is this for Linux or Windows?  I have tried using /q
instead, but it still doesn't work.

Is there any documentation on this?

Regards

Peter


--- End Message ---
--- Begin Message ---
Hello,

Has anyone had problems using the IMAP functions to
access a POP3 from a FreeBSD Jailed machine??

It seems not be able to access the POP3 server.

As I have been told Jailed machines cannot use raw
sockets. Could that be the origin of the problem??

Jeremy Johnston

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
--- End Message ---
--- Begin Message ---
Nothing is wrong, the only problem is that your html server is configured to
interpret files with a php or maybe even php4 extension as php files, so if
you post an html file (with extension htm or html) the server will not
"know" what to do with the PHP code.

In this case just name your html files that use php code with a php
extension (ie. my_file.php)

"Roger Pang" <[EMAIL PROTECTED]> escribió en el mensaje
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have written the following html called "test.html" in /var/www/html
> directory :
> <html>
> <body>
> <?php
> phpinfo()
> ?>
> </body>
> </html>
>
> When I access this html with a browser, nothing displayed. However, when I
> renamed it to "test.php", it works.
>
> Anything wrong ? I am running Red Hat 7.1 and chosen to install
everything.
> No change on any config files relating to PHP and Apache.
>
>
>
>


--- End Message ---
--- Begin Message ---
Just installed php 4.0.6 on IIS 5.0, Win2kServer

did the manual config. - regedit to file types
executing at command line PHP works - (c:\php\php.exe
c:\inetpub\wwwroot\intranet\test.php returns the correct output
Tried mapping in IIS files to c:/php/php.exe %s %s and without %s
Tried giving different permissions to the folder c:\php..

error message in full is:
CGI Error.
The specified CGI program misbehaved by not returning a complete set of HTTP
headers. The Headers it did return where: ** NO TEXT APPEARS **.


is this a permissions thing or somethign else?  i have to believe the
php.exe is ok and installed correctly because it works on commandline.

any ideas?  i'm not an IIS techie, so type slow for me.
:)
thx.



--- End Message ---

Reply via email to