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
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()
I am now needing to switch to absolute paths:
include_once ("/lib/included.php");
why do you need to do that? that include will bypass the include_path
and only look in the /lib dir on your machine - which is not what you
want I think.
Thanks everyone for your great responses. What was my rat
3 matches
Mail list logo