Hi E's, I have my site in a sub-domain, and some of that contain I want get from the domain, but I don't know the path.
In practice, I have this files located in a sub-domain, example.domain.com/index.php.
The contain of index.php is:
<? include("database.php"); ?>
<? include("brain.php"); ?>
The problem is, database.php and brain.php located in domain.com/database.php and domain.com/brain.php
The only way I found to fix the problem was <? include("http://domain.com/database.php"); ?>, but I want to see if it is possible the path don't contain the domain name, because the domain can be a lot of names (domain.com, thedomain.com etc).
I try without sucess, do this kind of paths:
<? include("../public_html/database.php"); ?>
<? include("..home/public_html/database.php"); ?>
What is the path to get a file in domain from sub-domain?