Kerflumper
IS-IT--Management
I have a perplexing problem with a PHP script running on a GoDaddy server. There is nothing special about the script, but the script will not run unless there is a file in the root of the web site called default.php. This default.php has no content except the following (the default page is presently index.html):
If I delete this file, the other script won't run. it might be worth mentioning that there is no index.save file anywhere.
What might be the cause of this?
Code:
<script language=" php" >
if (getenv ("HTTP_HOST")=="[URL unfurl="true"]www.domain.com"[/URL] or
getenv ("HTTP_HOST")=="domain.com")
{
Header("Location: [URL unfurl="true"]http://www.domain.com/index.save");[/URL]
exit;
}
</script>
If I delete this file, the other script won't run. it might be worth mentioning that there is no index.save file anywhere.
What might be the cause of this?