My script...
index.php
DEFINE('DIR', 'http://www.example.com');
DEFINE('IN_PAGE', TRUE);
INCLUDE DIR . ('/incl/header.php');
INCLUDE DIR . ('/incl/content.php');
INCLUDE DIR . ('/incl/footer.php');
/incl/header.php
if (!defined('IN_PAGE'))
{
header("Status: 403 Forbidden");
exit('<B>403 Forbidden</B>');
}
Visiting index.php
Warning: include(http://www.example.com/incl/header.php) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /public_html/incl/index-incl.php on line 4
Warning: include() [function.include]: Failed opening 'http://www.example.com/incl/header.php' for inclusion (include_path='.:/usr/lib64/php:/usr/lib/php') in /public_html/incl/index-incl.php on line 4
It works kinda, if I try accessing the file directly I get "Forbidden" message like I wanted.. But I can't include it in my script.. even though I'm pretty sure I followed phpBB's dev wiki correctly.
I'm pretty damn novice, so your help is greatly appreciated! =]