note 63291 added to function.header
| From: | martiankyo at osu1 dot php dot net | Date: | Sat, 18 Mar 2006 14:44:59 +0000 |
| Subject: | note 63291 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-106039@lists.php.net to get a copy of this message | ||
had a strange problem with using double quotes, on my local machine, apache 2 and php5 the following
line worked fine
header("Location:log.php")
however when i transfered it to the remote server, php4 and version of iis, it did not work. I lost
about an hour trying to figure it out, I was really confused cause on other pages redirection
worked, then i noticed the difference on other pages i used single quotes like this
header('Location:log.php')
save yourself the frustration and always use single quotes with this function.
----
Server IP: 66.163.161.117
Probable Submitter: 89.146.138.138
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- http://master.php.net/note/edit/63291
Del: integrated -- http://master.php.net/note/delete/63291/integrated
Del: useless -- http://master.php.net/note/delete/63291/useless
Del: bad code -- http://master.php.net/note/delete/63291/bad+code
Del: spam -- http://master.php.net/note/delete/63291/spam
Del: non-english -- http://master.php.net/note/delete/63291/non-english
Del: in docs -- http://master.php.net/note/delete/63291/in+docs
Del: other reasons-- http://master.php.net/note/delete/63291
Reject -- http://master.php.net/note/reject/63291
Search -- http://master.php.net/manage/user-notes.php