Re: Re: How to set an absolute include path?

From: Date: Mon, 27 Dec 2004 23:49:52 +0000
Subject: Re: Re: How to set an absolute include path?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-205223@lists.php.net to get a copy of this message
Brian Dunning wrote:
I should add that I'd heard that the following will set the include_path to the server root, no matter where you call includes from: ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); But this doesn't seem to be doing it for me. Also my development server is Windows and my production server is BSD, in case that affects things... Since you problem is also needs to be OS independent, I have written a short article about this subject. It covers both windows and linux based servers as the path to a folder is a bit different when it comes to windows. http://melbourne.ug.php.net/content/view/55/62/
cheers, Jeffery http://melbourne.ug.php.net

« previous php.general (#205223) next »