I'm still learning PHP and just starting to get to grips with it.
$url = $_SERVER['REQUEST_URI'];
$user = $_SERVER['HTTP_USER_AGENT'];
if ($url == "/example.php" && $user == "HelloWorld")
echo "";
else
Header("Location: http://www.google.co.uk");
Basically what I'm trying to achieve is when the useragent is "HelloWorld" and the URL is [root]/example.php the user stays on the page ... otherwise they're redirected to google...
But, I'm being redirected to Google both when my useragent IS HelloWorld, and even when the URL ISN'T /example.php ...
All help is hugely appreciated!
Brownie. :)