Hi,
I have a WAMP based Site and would like to user path as a variable instead of fixed path. I tried variable like
$sgospel = "$server./sgospel/";
$include_path = "$sgospel./includes";
echo($server);
echo($sgospel);
Results are:
C:/wamp/www/
C:/wamp/www/./sgospel/
When I put
$f_path = "$include_path/inc.terms.php";
echo($f_path);
I get
C:/wamp/www/./sgospel/./includes/inc.terms.php
Instead of
http://localhost/sgospel/includes/inc.terms.php
I want it to be relative path instead of absolute path equivalent to :
"/gospel/"
"/"
Thanks alot.