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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php