Forum Moderators: coopster
I would like to redirect every user in "los angeles" for example, to a certain page.
I tried:
if ($_SERVER['REMOTE_HOST'] contains 'angeles'){
echo'it worked';
}
...but obviously it did not work.
Now I realize this isn't fool proof and not all ISPs place city names in the remote host. It doesn't need to be fool proof, as this is only a temporary redirect for now.