I’ll abridge this and try to make it as clear as possible without extraneous verbage. Thank you in advance.
THE SETUP
-
‘/construct/’ directory, which contains page-layout master files, located in ‘/home/xxxx/construct/’
-
Master files in ‘/construct/’ contain PHP Includes intended to search one level up the tree. For example:
[php]<php include("/bodyCopy/copy-content.php"); ?>[/php]
- The ‘/construct/’ directory is SYMLINKED into different subdomains (of the same domain with all things being equal in each subdomain). For example:
[#]http://sampleaccount1.mywebsite.com/construct/[/#]
…wherein the same ‘/construct/’ directory and its files is actually symlinked ~ this action (with ‘/construct/’) will be repeated in multiple subdomains.
THE PROBLEM
- The PHP includes I am using in the page-layout masters located in the symlinked ‘/construct/’ directory…
[php]<php include("/bodyCopy/copy-content.php"); ?>[/php]
…is supposed to pull the ‘copy-content.php’ file from the ‘/bodyCopy/’ directory WITHIN the subdomain, but…
- BECAUSE the page-layout master file is symlinked (as it resides in ‘/construct/’), the PHP Include command is searching for the ‘/bodyCopy/’ directory in ‘/home/xxxx/construct/’ where the ‘/construct/’ directory resides.
There is no such path as ‘/home/xxxx/construct/bodyCopy/copy-contet.php’.
- So, I would like to know how to get a PHP Include command, which is located in a directory/file (located above the root) that is symlinked into a subdomain, to look one level up INSIDE the subdomain, to ‘include’ a file. In other words…
*NOTE: My earlier research showed that symlinked files are not capable of PHP Including files from within the directories or subdomains in which they are symlinked. Of course, FCKEditor and CKEditor are often symlinked and DO search (and write to) directories and files in which they are symlinked. Thus, I am assuming there is a solution to my problem.
I appreciate any help anyone can provide. Thank you very much for your time, patience, and tutelage.
–JET–