hi, i'm newbie in php and i need help: I try to redirect users identicated by $REMOTE_USER to different pages. I get few scripts, but still are problems:
<?
$tab = array("user"=>"http://page_user", "user1"=>"http://page_user1", "user2"=>"http://page_user2");
$user=$_SERVER['REMOTE_USER'];
echo "<meta http-equiv='refresh' CONTENT='2; URL=$tab[$username]>";
?>
this code only refreshing, not redirecting;
$user=$_SERVER['REMOTE_USER'];
if ($user=="john")
{
header("Location: [url]http://johnspage.com[/url]");
}
else
{
header ("Location: [url]http://everyoneelse.com[/url]");
}
can redirect only one user.
How can I change any of this code??? please!