Is there a function/way that after so much code has been processed it will automatically load a different page? Like a user clicked a link, but really didn't. I don't want to have to use html header refresh either.
Ex:
Assuming GoTo(); was a function that would automatically reload or transfer to another page.
<?php
//random code above
if(isset($auth)){
GoTo("http://www.someurl.com/somepage.php");
} else {
print('You have not logged in');
}
?>
peace
sean