[php.ini include] Beginner Q How to load externally defined

From: Date: Sun, 25 Jan 2004 20:09:28 +0000
Subject: [php.ini include] Beginner Q How to load externally defined
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-175688@lists.php.net to get a copy of this message
John W. Holmes wrote:
<snipped a bit> As for your php.ini, you put a path for include files that PHP will look in by default. So if you put 'c:/_Paul/web/phplib/utilities' as an include path, you'll be able to just use include 'dirfile.php'; instead of giving the complete path.
I added this line to my php.ini without luck: include_path = 'c:/_Paul/web/phplib/utilities' maybe there is another section I should use like: extension_dir = "./" maybe separate with a semicolon or space for more than one? the call looks like this: include 'dirfile.php'; #contains scandir() function echo scandir(); with this error: Warning: main(dirfile.php): failed to open stream: No such file or directory in C:\_Paul\web\phplib\screen\home.php on line 8

« previous php.general (#175688) next »