note 54525 added to function.header
| From: | aidan at snogspot dot com | Date: | Thu, 07 Jul 2005 03:32:40 +0000 |
| Subject: | note 54525 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91564@lists.php.net to get a copy of this message | ||
PocketPC users:
I had errors stating "connection lost" etc in a Windows Mobile 2005 device with Pocket
Internet Explorer, PHP 4.3 + MySQL on IIS.
The problem was pinned down to malformed header code.
WRONG: Header("Location:index.php");
RIGHT: Header("Location: index.php");
Big difference huh... well it was enough to break each page using the Header redirect. Apache
doesn't have this problem, presumably it re-writes the header for you, but IIS doesn't.
Hope this helps.
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54525
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54525&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54525&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54525&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54525&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54525&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54525&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54525&report=yes
Search -- http://master.php.net/manage/user-notes.php