hi, i'd like to include some templates outside of my webroot directory, simply so they can't be run publicly. i'm trying to set the "include_path" to allow me to do this.
i'm using a public server so this might be a permissions issue.
i have a template in the webroot which does this:
<?
ini_set("include_path","./../_php");
include("main.php");
?>
i want it to drop down a level from the webroot, then into my "_php" directory which contains my main php files.
if i set include_path to be any subdirectory of the webroot the templates work fine but any outside of the webroot folder return this error:
failed to open stream: No such file or directory in d:\InetPub\development\test.php on line 3
Failed opening 'main.php' for inclusion (include_path='./../_php')
is there something else i need to set in PHP, or is this a folder permissions issue? or am i just being stupid?
thanks!