Hi there,
My script has an install.php file which if it exists, I want it to redirect to the install.php file. I entered this code in index.php:
But it didn't work, it just views index.php naturally, even if install.php exists, what I'm I doing wrong?Code://---------------------------- // Checking If Install File Exists! //---------------------------- if(is_dir('./install.php') and $_SERVER['HTTP_HOST'] != 'localhost') { header("Location: ./install.php"); die(); } //---------------------------- // Finished Checking //----------------------------
Many thanks for your help.
Best Regards,
Private_Guy



Reply With Quote

Bookmarks