Forum Moderators: coopster
<?php
switch $_GET["id"]
{
case "00":
include('00/index.php');
break;
case "01":
include('01/index.php');
break;
case "02":
include('02/index.php');
break;
default:
include('error.php');
}
?>
#### HTML CODE ####
anyway, if i type localhost/php/index.php the browser generates an error message looking like this:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
i am using win2k (iss 5) and i've installed php... can anybody help me?
Open your httpd.conf file.
(in Apache/conf/).
Search for: "LoadModule ", when you get to the list add the location of the PHP Apache SAPI (this will most likely be different for you):
LoadModule php4_module "E:\PHP\sapi\php4apache2.dll"
(note this is for Apache 2).
Now search for "AddType application", when you get to the list add:
AddType application/x-httpd-php .php
Save the *.conf file and restart Apache. It *should* now work!
LoadModule php4_module "C:\PHP\sapi\php4apache.dll"
because i'm using Apache 1.3.x actually... but when i start apache it says:
syntax error on line 194 of c:/programme/apache/conf/httpd.conf:
cannot load c:/php/sapi/php4apache.dll into server: (126) Das angegebene Modul wurde nicht gefunden
(in english: the specified module was not found)
the file c:/php/sapi/php4apache.dll DOES exist, so i don't know why apache says that it doesn't...