I'm having a very frustrating PHP include error that just started recently.
Basically, I have .php pages in a directory with a PHP include call followed by some other html and code.
Here is a sample of what I am talking about
<?php $clientip = $_SERVER['REMOTE_ADDR']; ?><?php include('http://www.domain.com/subfolder/content/section1.php?keyword=Los-angeles-cosmetic-surgery&yourip='.$clientip); ?>
The above is all on line 1 of my page. The page dynamically creates a page with an RSS feed I setup for the given keyword.
I checked my RSS feed source and it works fine. I was able to query it with my browser and the feed shows up. Also, I used lynx on my command line and the feed comes to the server successfully.
Now, however, I get the following error in my logs, and I am not sure why this is happening!
[Tue Aug 07 12:44:28 2007] [error] [client 188.8.131.52] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening 'http://www.domain.com/subfolder/content/section1.php?keyword=Los-angeles-cosmetic-surgery&yourip=184.108.40.206' for inclusion (include_path='.:/usr/share/pear') in /home/www/web758/web/subfolder/Los-angeles-cosmetic-surgery.php on line 1
When I try to open the above page in my browser or lynx, I simply get a blank page with the other html I have on the page AFTER the include call.
Note, the server is ASKING ITSELF for the include via http://www...etc
. I am not including it using the local path (ie /web/subfolder/include.php). I have always used this method and never until a couple days ago did it cause any trouble.
I am using ISPConfig (of course!
) on Fedora Core 5 linux.
Note, I recently fixed some DNS issues with my server...The resolv.conf file was misconfigured and I had to change it to the proper values.
Fopen is on in my PHP.ini file - so I don't know why this is happening?
Any ideas? Thanks!