Thank you, Thank you, Thank you

That was the problem. I knew it had to be some simple detail that I was
missing. I REALLY appreciate your help.

George B
[EMAIL PROTECTED]

-----Original Message-----
From: DvDmanDT [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 03, 2004 12:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: WinXP- PHP install: Premature end of script headers

You are not supposed to use php.exe, use php-cgi.exe.. php.exe doesn't
generate any HTTP headers like cgi's are required to, therefore the error...

-- 
// DvDmanDT
MSN: dvdmandt€hotmail.com
Mail: dvdmandt€telia.com
"George Broyles" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> I have successfully installed Apache 2.0.51 on my Windows XP machine. I
also
> installed PHP 5.0.1 under c:\php and configured the php.ini as in the
> instructions. I am now trying to execute a php page in my browser. I
created
> an index.php with the following content:
> <html>
> <head>
> <title>PHP Test</title>
> </head>
> <body bgcolor="#FFFFFF" text="#000000">
> PHP TEST PAGE
> <? phpinfo(); ?>
> </body>
> </html>
>
> If I rename the file to index.html, it renders correctly when going to
> http://localhost/. But as index.php I get a 500 server error to the
browser,
> and the following in the apache error log:
> [Sat Oct 02 15:43:42 2004] [error] [client 127.0.0.1] Premature end of
> script headers: php.exe
>
> I believe that I must have something incorrect or missing in the apache
> httpd.conf. I will copy all the php related entries that I have in there
> here:
> *****
> <IfModule mod_dir.c>
>     DirectoryIndex index.html index.html.var
>     DirectoryIndex index.htm
>     DirectoryIndex index.php
>     DirectoryIndex index.php3
>     DirectoryIndex default.html
>     DirectoryIndex default.htm
> </IfModule>
>
> ScriptAlias /php/ "/php/"
>
> AddType application/x-httpd-php .php
>
> Action application/x-httpd-php /php/php.exe
> *****
>
> I can include the entire httpd.conf, if anyone feels it's necessary.
>
> I've searched for a long time for a solution to this problem, and I find
> lots of people asking the same question. But I have yet to see an answer.
> The closest to an answer I've seen, is that someone said they installed
php
> as an apache module and that took care of their problem, but I don't know
> how to install php as a module either.
>
> Any ideas out there??
>
> George
> [EMAIL PROTECTED]

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to