php location function code example Example: php location <?php header('Location: http://www.example.com/');