include problem
Hej!Jeg kører Apache 2.0.51 på en WinXP maskine med PHP 4.3.9. Da jeg var ved at rydde op i strukturen af mit kommende hjemmestrikkede PHP-baserede CMS, hvor alle mine include-filer bliver lagt i en separat undermappe.
af mystiske årsager virker linjen
include("includes/functions.php"); ikke.. Som I kan se forneden har jeg har prøvet forskellige muligheder med både forward og backslash (\ og /)Apache svarer:
[Thu Sep 30 08:58:04 2004] [error] [client 127.0.0.1] PHP Warning: main(): Failed opening '\\include\\functions.php' for inclusion (include_path='.;c:\\php4\\pear') in D:\\websites\\FPCMS\\login.php on line 3
[Thu Sep 30 09:22:39 2004] [error] [client 127.0.0.1] File does not exist: D:/websites/FPCMS/logo.php
[Thu Sep 30 09:29:02 2004] [error] [client 127.0.0.1] PHP Warning: main(//include//functions.php): failed to open stream: No such file or directory in D:\\websites\\FPCMS\\login.php on line 3
[Thu Sep 30 09:29:02 2004] [error] [client 127.0.0.1] PHP Warning: main(): Failed opening '//include//functions.php' for inclusion (include_path='.;c:\\php4\\pear') in D:\\websites\\FPCMS\\login.php on line 3
[Thu Sep 30 09:29:55 2004] [error] [client 127.0.0.1] PHP Warning: main(includes/functions.php): failed to open stream: No such file or directory in D:\\websites\\FPCMS\\login.php on line 3
[Thu Sep 30 09:29:55 2004] [error] [client 127.0.0.1] PHP Warning: main(): Failed opening 'includes/functions.php' for inclusion (include_path='.;c:\\php4\\pear') in D:\\websites\\FPCMS\\login.php on line 3
