In my PHP script, I have this piece of code:
elseif($_SERVER["PHP_SELF"] != "/site/control.php") {
header("Location: index.php");
}
There are also some other if statements above it. Whenever I go to a page with this script on it, I get this error: “Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are being blocked.” Does anyone know why it is doing this? I have some other header(“Location: index.php”) lines in other if statements, but only that one gives me the error. I know because I’ve tried the script with just that statement and I still get the error. Anyone know whats going on?