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
and
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
PHP Code:
$maindir = dirname(__FILE__) . DIRECTORY_SEPARATOR;
require $maindir . DIRECTORY_SEPARATOR . "globalFunctions.php";
PHP Code:
include('http://www.domainname.com/globalFunctions.php');
PHP Code:
include('../../globalFunctions.php');
any ideas
Comment