|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-04-04 07:15 UTC] tomas dot marklund at datortek dot orebro dot se
I installed a new php4.3.1 on a new IIS5 on a new computer with WinXP SP1.
And then all my scripts with the
Header("location:index.php") funktion stopt working.
The only error message that i get is:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Note: It worked before!!
I hope this is no bug! but a error i've made
PHP 4.3.1 installer.zip
MySQL 4.0 (if this matter)
code--
<?$connect = mysql_connect("localhost","secr","secr");
mysql_select_db("daniel" , $connect);
@$result = mysql_query("insert into studier(ar, skola) values(\"$ar\",\"$skola\")", $connect);
header("Location:index.php");?>
--code
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Feb 07 12:00:01 2026 UTC |
header("Location:foo.php"); violates the RFC. Not bug in PHP.Use the full, absolute URI. header("Location: http://www.example.com/foo.php"); The RFC: http://www.w3.org/Protocols/rfc2616/rfc2616.html JNow i've tried And it still doesen't work: header("Location:http://tomas/daniel/index.php"); tomas is the domain. I still get this: The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: It must be a bug!And, by the way, that was still not a valid Location header -- it has to be: header("Location: http://tomas/daniel/index.php"); with the space after Location:, as shown in Jay's example.header("Location: http://tomas/daniel/index.php"); Still doesen't work!!