Advertising
PJ wrote:
I do have a bit of a problem which has not been clearly explained in the suggestions to my previous posts and that is the question of hierarchies. I have not yet understood how to include a file anywhere in a directory tree and have it point to the right file which may be in the top directory or, most likely, in a /lib/ directory from the file that is including. Any suggestions, or should I just make myself small and wait for the rotten eggs and spoiled tomatoes to come raining down on my head? :'(
Are you talking about having a file structure such as: /home /include /webroot /->images /->css /->javaAnd you want to include a file from the include folder which is above the webroot, so doesn't have access to it?
If that's the case... you just need to set the path such as: ini_set("include_path", "/home/include");
then in your PHP file you should be able to: include("mysupperfile.php"); and it should work :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php