I have a subdomain on my server that I just set up under a domain (let's call it http://sub1.mydomain.com) and I'm trying to include files from the parent domain on a few pages in there but it's not letting me.
Normally I would use an include like this:
<? include ("/home/httpd/vhosts/mydomain.com/httpdocs/file.php"); ?>
And if it's on the subdomain, it's obviously structured like this:
<? include("/home/httpd/vhosts/mydomain.com/subdomains/sub1/httpdocs/file.php"); ?>
What I'm trying to do is run this tag ( <? include ("/home/httpd/vhosts/mydomain.com/httpdocs/file.php"); ?> ) on the subdomain, but it's not loading. I'm guessing it's a permission issue - but I'm wondering if anyone has run into this before and has an easy fix?