Re: hierarchies
| From: | Jason Pruim | Date: | Fri, 27 Mar 2009 18:33:04 +0000 |
| Subject: | Re: hierarchies | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-290770@lists.php.net to get a copy of this message | ||
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 /->java And 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 :)