CODE
// Won't work; looks for a file named 'file.php?foo=1&bar=2' on the
// local filesystem.
include 'file.php?foo=1&bar=2';
// Works.
include 'http://www.example.com/file.php?foo=1&bar=2';
// local filesystem.
include 'file.php?foo=1&bar=2';
// Works.
include 'http://www.example.com/file.php?foo=1&bar=2';
So, I used the following code to include the header.php file which I use to draw the top navigation menu on my site.
CODE
<? include "http://" . $_SERVER['HTTP_HOST'] . "/includes/header.php?d=../../" ?>
It worked before, but now I see the following errors on my page.
QUOTE
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/ntek/public_html/products/pikabot/index.php on line 31
Warning: include(http://ntek.astahost.com/includes/header.php?d=../../) [function.include]: failed to open stream: no suitable wrapper could be found in /home/ntek/public_html/products/pikabot/index.php on line 31
Warning: include() [function.include]: Failed opening 'http://ntek.astahost.com/includes/header.php?d=../../' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ntek/public_html/products/pikabot/index.php on line 31
I suppose disabling URL file access was meant for security purposes. Is there any workaround?


