-
Jul 23, 2003, 03:33 PM
#1
Error in CGI Application
I have installed PHP, but when I to access a PHP script file via my browser, I get the error:
cgi error:
The specified CGI application misbehaved by not
returning a complete set of HTTP headers.
The headers it did return are:
My webserver is IIS 4 and I am using this script for login and logging out a user.
-
Jul 23, 2003, 03:34 PM
#2
Re:Error in CGI Application
What do you think could of caused the problem?
-
Jul 24, 2003, 10:36 AM
#3
Re:Error in CGI Application
are you sure you follow the instruction completely? I installed my version of php on apache. ISS should be too hard though maybe you overlooked one of the steps in the read me file.
I however can suggest another way to install it (if all else fails). read the setup again.
-
Jul 24, 2003, 12:18 PM
#4
Re:Error in CGI Application
I've read it over and over and went thru the steps again. Every time the user logins or logouts I get that error.
-
Jul 24, 2003, 12:26 PM
#5
Re:Error in CGI Application
Are you sure the page exists? No, seriously. The only time I get that error is if I mistyped a URL or mis-spelt a link. Check to make sure that the link has the exact name as the page.
If you get this error on a certain page/link, but you can view other '.php' files, then that's probably the problem.
-
Jul 24, 2003, 01:19 PM
#6
Re:Error in CGI Application
It's the right url it's pointing to. I checked that. I still don't know what could be the prob.
-
Jul 24, 2003, 03:22 PM
#7
Re:Error in CGI Application
Can you view other PHP files or do they all give that error?
-
Jul 24, 2003, 04:03 PM
#8
Re:Error in CGI Application
yea i can view the other files. It only happens when I try to login or click logout
-
Jul 24, 2003, 05:59 PM
#9
Re:Error in CGI Application
Well like I said, I've never encountered that error in any other form than that which I've stated.
If you're not afraid of me stealing your code you can send me the delinquent pages from your application. I'll see if I can debug it and post the fix.
-
Jul 24, 2003, 11:05 PM
#10
Re:Error in CGI Application
These is the code for the logout.php
<?php
session_start();
header('HTTP/1.0 401 Unauthorized');
echo 'You are logged out...';
session_register("current_u ser");
session_register("agent&quo t;);
session_register("agentname ");
$current_user = "";
$agentname = "";
session_unset();
session_destroy(); &n bsp;
?>
=============================================
This code actually calls the logout.php. It's html tho:
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>J amaicacars Administration</title>
</head>
<body bgcolor="white" TEXT="#000000" LINK="#000066" VLINK="#000066" alink="#000066">
<center> &nb sp;
<table border="0" cellspacing="0" cellpadding="2" width="590">
&n bsp;<tr>
&n bsp; <td>
&n bsp; <div align="left">
&n bsp; &nbs p; <font face="arial,ms sans serif" size="4"><b>Jamaicacars Administration</b></font>
&n bsp; &nbs p; <hr size="1">
&n bsp; </div>
&n bsp; <div align="right">
&n bsp; &nbs p; <font face="ms sans serif" size="1"><a href="./admin.php?action=addlisting">Add a Listing</a> | <a href="./admin.php">Manage All Listings</a> | <a href="./agenteditor.php">Manage Sellers</a> | <a href="../index.php">Jamaicacars Home</a> | <a href="../logout.php">Log Out</a></font></div>
&n bsp;
&n bsp; </td>
&n bsp;</tr>
</table>
<P>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules