Page is a not externally linkable
- Code, Content, and Presentation
-- HTML
---- relative links question about my PHP include?


Marcia - 2:16 am on Mar 26, 2008 (gmt 0)


For using includes on pages in /directories/ the easiest way is to put the includes into their own directory called /includes/ and call the includes for the pages like this:

<?php include("../includes/thecode.php"); ?>

Just disable the main page of /includes/ from being viewable using an Apache deny or by uploading a blank index page. That's basically for privacy and security reasons.


Thread source:: http://www.webmasterworld.com/html/3610536.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com