Re: Re: Really strange / TYPO

From: Date: Thu, 05 Oct 2006 20:22:10 +0000
Subject: Re: Re: Really strange / TYPO
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-242715@lists.php.net to get a copy of this message
On Thu, October 5, 2006 2:34 am, John Wells wrote: > [code] > // Consider *where* you create this > // Define it as a constant if you'd like... > define('BASE_PATH', dirname(__FILE__)); > > // Now build the path, like (assuming it was created > // in a file located at /var/www/html > include_once(BASE_PATH . '/config.inc.php'); > [/code] Gah! Now you've made it even HARDER to move the include files out of the web tree, or wherever is more convenient and safer. include_path is a much more powerful and flexible construct which will save you an inordinate amount of trouble if you just figure out how it works and use it... -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#242715) next »