if (condition)
{
#lol. Some code here
}
else
{
header("Location:/");//i'm trying to redirect to the root
}
Redirect works perfectly on localhost, but not on remote server.
May be it's all better to use $_SERVER
?
This redirect wouldn't work even if i choose file in the same directory as file with redirect.
Hope you help me :)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…