Am i crazy?
| From: | Martin | Date: | Sun, 04 Nov 2001 17:48:57 +0000 |
| Subject: | Am i crazy? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-73400@lists.php.net to get a copy of this message | ||
Did I forget everything in a few months?
if ($name='admin') {
header("Location: $MYPATH/admin.php");
}
Doesn't. That is it doesn't redirect to whatever $MYPATH/admin.php
translates to. Doing an echo $MYPATH directly after the line shows that the
path is interpreted correctly - and the file exists (I checked). And the
$name is correct - echo $name gives admin. And neither does the php.net
example work ...
if ($name='admin') {
header("Location: http://www.php.net/");
}
doesn't redirect to php.net.
*sigh*
Martin