note 27987 added to function.include

From: Date: Sat, 28 Dec 2002 18:16:03 +0000
Subject: note 27987 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-41386@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? -- http://www.php.net/manual/en/function.include.php http://master.php.net/manage/user-notes.php?action=edit+27987 http://master.php.net/manage/user-notes.php?action=delete+27987 http://master.php.net/manage/user-notes.php?action=reject+27987

« previous php.notes (#41386) next »