I tried using the following:
<?php include("pictures/navigation.inc"); ?>
but it gave me an error, how do i use INCLUDE from a different directory?
thanks in advance.
That looks right. what was the error?
You may have to use the total root i.e. /home/sites/www.your-domain.com/pics/etc.inc
Warning: Failed opening 'pictures/start_ctemplate.inc' for inclusion (include_path='') in c:\program files\apache group\apache\htdocs\images.php on line 1
You might try opening the directory or file from the address bar of your browser. If you can then cut and paste that into your code. If that doesn't work perhaps cut and paste from your FTP tool.
I find it easier just to include the URL, instead of the path.
e.g
<?php include("http://www.mysite.com/mypage.php"); ?>
ini_set("include_path", "/dir/to/pictures"); include("nagivation.inc"); ini_set("include_path", "/dir/to/theOtherFiles");