Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
I cannot remember anymore how many time this has been answered.
Rely on the $_SERVER['DOCUMENT_ROOT'] variable.
If you put all your functions in a file named fxs.php, in a directory named "includes" at the root of your web site, to always include it, anywhere in the site, it would be
PHP Code:
include($_SERVER['DOCUMENT_ROOT']."/includes/fxs.php");
$_SERVER['DOCUMENT_ROOT'] points to the root folder of your web site on the server.
__________________
Only a biker knows why a dog sticks his head out the window.
|