say i access page hello.php from my ip address 127.0.0.1 then i get sent to index.php
but if i access from any other ip i get sent to goodbye.php
i set them as variables like this:
Code: Select all
$header = 'if ($_SERVER['REMOTE_ADDR'] == '127.0.0.1') header("Location: hello.php");';
$header2 = 'header("Location: goodbye.php");';