kevinkhan
09-01-2011, 04:43 PM
i am running a file in the following folder on my hosting server
/httpdocs/folder1/folder2/script.pjp
how do i include a file that is located at the root of the hosting server
/httpdocs/globalFunctions.php
iv tried
$maindir = dirname(__FILE__) . DIRECTORY_SEPARATOR;
require $maindir . DIRECTORY_SEPARATOR . "globalFunctions.php";
include('http://www.domainname.com/globalFunctions.php');
and
include('../../globalFunctions.php');
but none of these work
any ideas
/httpdocs/folder1/folder2/script.pjp
how do i include a file that is located at the root of the hosting server
/httpdocs/globalFunctions.php
iv tried
$maindir = dirname(__FILE__) . DIRECTORY_SEPARATOR;
require $maindir . DIRECTORY_SEPARATOR . "globalFunctions.php";
include('http://www.domainname.com/globalFunctions.php');
and
include('../../globalFunctions.php');
but none of these work
any ideas