note 27987 rejected from function.include by nicos

From: Date: Sat, 28 Dec 2002 18:41:31 +0000
Subject: note 27987 rejected from function.include by nicos
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-41391@lists.php.net to get a copy of this message
I'm having trouple with the include funciton in linux. When i try to include a file, say include "/main.php"; it tries to search the root of the linux drive and doesn't consult the include_path as being equal to /, whereas the same command in windows PHP will look in each path of include_path as if it were the / or root directory. i.e. -- LINUX include_path = ".:/includes/:/www/" include "/main.php"; looks in the root of linux for main.php, not in ., /includes, or /www/. WINDOWS include_path = ".;D:\PHP\INCLUDES\;D:\www\" include "/main.php"; treats /main.php as equal to D:\www\main.php Is this a bug? or is there a fix i can do for it without having to modify all my sourcecode?

« previous php.notes (#41391) next »