If there is no whitespace before <?php and if nothing have been printed then you can use the header function:
header( "Location: file.php" );
If you've printed something or have some space before <?php then do like this:
echo "<meta http-equiv=\"refresh\" content=\"1; url=file.php\"/>\n";
This should work for you! 🙂