Hello.
I'm trying to teach myself PHP and a friend showed me how to setup some dynamic relative links. ( no idea if this is what their actually called )
So I have this in my header:
$basePath = "http://" . $_SERVER['HTTP_HOST'] . "/";
and ill apply it to a link: <a href="<?php echo $basePath?>link/to/page/">
That works fine, and i understand how it works, but what i can't figure out is how would i apply that variable when using the Require() function?
here is one of my Requires:
Require("../includes/links/leftlinks.php");
Is it possible at all to add the variable to that?
Cheers for any help.
Anthony
I'm trying to teach myself PHP and a friend showed me how to setup some dynamic relative links. ( no idea if this is what their actually called )
So I have this in my header:
$basePath = "http://" . $_SERVER['HTTP_HOST'] . "/";
and ill apply it to a link: <a href="<?php echo $basePath?>link/to/page/">
That works fine, and i understand how it works, but what i can't figure out is how would i apply that variable when using the Require() function?
here is one of my Requires:
Require("../includes/links/leftlinks.php");
Is it possible at all to add the variable to that?

Cheers for any help.
Anthony