note 63291 deleted from function.header by bjori
| From: | bjori@php.net | Date: | Sat, 18 Mar 2006 17:59:13 +0000 |
| Subject: | note 63291 deleted from function.header by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-106043@lists.php.net to get a copy of this message | ||
Note Submitter: martian kyo
Reason: bad code
----
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.