Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to PHP and getting cgi error

Status
Not open for further replies.

dunskii

Programmer
Sep 14, 2001
107
AU
Hi all,

I have just installed php and mysql, when checking to see if it worked i got the error

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:


Heres the code i used to test it:

<body>
<?php
$myvar = &quot;Hello World&quot;;
echo $myvar;
?>

</body>

Also, what the best way import text based databases into mySQL

Thanks in advance...
Dunskii
 
Did you save your test file with a php extension?

If you're on Apache, did you stop and then restart APACHE?

If you're on PWS/IIS did you add the .php extension as pages to parse?
 
i am using iis5 with php4... i have added .php as an extension... is there a way of adding http headers...if so how and what

 
Other possibilities;

--Is your file in your folder, or below.
--Stop and restart IIS.
--When you installed php, assuming you installed from the win32 binaries, did you select IIS as the webserver?

I've seen that error, I just can't remember what I did to correct it....:(
 
I had the web page on a different drive....but had told iis where it was...just tried it in the dir...it still had the same problem...
 
for Win platforms, there is a server setup for dummies(not really) that sets up everything from perl/latest php/latest mysql/phpmyadmin/apache, basically everything you need. Its called foxserv and you can download at it works great and all you have to do is place yor files in the www/ folder. Just a suggestion.
 
I got this error on my Win2K server, and despite the documentation, it was only fixed by a reboot. Then all was fine.

-Rob
 
Thanks for all your help peoples...

I've ended up using Foxserv as the FAQ steps werent helping...

thanks again

dunskii
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top