Hello, I am having trouble with the include() function. I have my index.html file in the document root directory, but when I try to tell it to include a file from the document root directory by entering include(’/external/menu.html’) it won’t work. For some reason it doesn’t like searching through the document root directory when I use a file that is in the document root directory. It works fine if I do the same thing from a subdirectory though. Here is the error I get:
Warning: main(/external/menu.html): failed to open stream: No such file or directory in C:Program FilesApache GroupApache2htdocsindex.html on line 21
Warning: main(): Failed opening ‘/external/menu.html’ for inclusion (include_path=’.;c:php4pear’) in C:Program FilesApache GroupApache2htdocsindex.html on line 21
I don’t know if it is suppose to do that or not.
I am pretty new to PHP, so any help would be greatly appreciated.