It's the first time i write in this site, even if i've used it an enormous amount of times!
My question is that i need to run a php script before the html loads.
I have an index.php, so i can write the php instructions by opening and closing it (<?php ------ ?>)
. The php that i have will controll a variable value and if it's false it will instantly reload the page and redirect to another. It works but if I press the "X" button on top (the one that becomes a reload button) the script will be "bypassed" and it will show the whole html page i have.
The file.php with the html is like this:
<?php ----------
----------------
header("refresh:0; url=redirect.html");
?>
<html>
<head>
----------
----------
</head>
</html>
Is there something else i can try to do?