Re: [PHP] Re: include_path and absolute paths in include functions

2006-05-15 Thread Richard Lynch
On Thu, May 11, 2006 8:10 pm, Steven Stromer wrote: > relative versus 'include_path'-based paths? I know that putting a > variable into the path is a no-no, but any other considerations? I suspect that the advice to use absolute paths is somebody NOT understanding the include_path system, and jus

Re: [PHP] Re: include_path and absolute paths in include functions

2006-05-11 Thread D. Dante Lorenso
If you are using PHP 5, you might have some fun with the __autoload() function. I use something like this in production: //-- function __autoload($class_name) { require_once ($class_name.".php"); } function push_libs()