Lost Password?


Go Back   CodeCall Programming Forum > Software Development > General Programming

General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-18-2007, 10:33 PM
thesquirrel16 thesquirrel16 is offline
Newbie
 
Join Date: Apr 2007
Posts: 12
Rep Power: 0
thesquirrel16 is on a distinguished road
Default Php - CGI Error

Sidewinder | Please use [php], [code] and [quote] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted.

Hi, ok so I have seen a lot of forums with this error and can't seem to find one that has a solution to it. Anyhow I came up with a simple example of a site that would trigger this error.

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

The site where you can find this is error
(if this goes straight to the error open the page in IE)
here is the code I used.

PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>error</title>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>

<body>
This is a simple example of the
<h1>CGI Error</h1>
<p>The specified CGI application misbehaved by not returning a complete set of HTTP headers.  The headers it did return are:</p>
<p>&nbsp;</p><?php
    $thecat
=$_GET['cat'];
    if(
$thecat == ""){$thecat 'Select Category';}

?>
<form name="form1" id="form1">
  <select name="menu1" onchange="MM_jumpMenu('parent',this,0)">
    <option value="/error.php?cat=One">One</option>
    <option value="/error.php?cat=Two">Two</option>
    <option selected="selected"><?php echo $thecat ?></option>
  </select>
</form>
<p>&nbsp;</p>
</body>
</html>


I believe this has something to do with getting the value from the URL. Anyone know how to fix this problem?

Sidewinder | Please use [php], [code] and [quote] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted.

Last edited by John; 05-19-2007 at 05:57 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 05-19-2007, 06:09 PM
John's Avatar   
John John is online now
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,433
Last Blog:
Google Web Toolkit
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default

I'm not really sure how this replicates the error. It always displays the error message because it is statically coded into the html. Unless I'm missing something?

I just did a quick google on the error message and it seems like a bug. Have a look here, this may be of help.
http://bugs.php.net/bug.php?id=25863
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Php error handling Jaan PHP Tutorials 3 09-07-2008 01:19 PM
can someone help me with my c librarys? bobwrit C and C++ 4 04-27-2007 07:19 PM
PHP error dirkfirst PHP Forum 4 01-31-2007 09:29 AM


All times are GMT -5. The time now is 05:55 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 98%

Ads