Forum Moderators: coopster
The problem is that sometimes when I try to load my php page which has a few php includes in it, I get a server error message saying things like:
"Warning: main(): HTTP request Failed! HTTP/1.1 404 Not Found in /home/httpd/vhosts/mysite.com/httpdocs/index.php on line 1"
...and similar errors.
Sometimes, however, I load the page and everything looks as it should do. I can't tell what determines whether I get the errors or whether I get the page as it should look - it seems random.
The includes I've written seem to be normal. They are of the format:
<?php include("http://www.mysite.com/includes/file.php");?>
...which I think is OK - anything wrong?
Strangely (and again, only sometimes), when I try refreshing the page I get a 404 error and this strange URL in my address bar:
[mysite.com...]
...though sometimes a refresh will show the page as it should look.
What's happening? Thanks in advance.