Includes working in higher directories, not in lower ones
| From: | Rod Martin | Date: | Thu, 17 Apr 2003 14:40:45 +0000 |
| Subject: | Includes working in higher directories, not in lower ones | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-19466@lists.php.net to get a copy of this message | ||
We're running PHP 4.2.1 on IIS 4.0. We've set up PHP to parse all .htm files in a virtual directory. In the root of this directory PHP includes work just fine, but when we get deep, they return this error...
Warning: Failed opening '../../../includes/leftnavbarag.htm' for inclusion (include_path='.;c:\php4\pear') in D:\Netscape\SuiteSpot\docs\cms\dev\subsections\news\dirwlcme4.htm on line 15
(The Netscape path is from our previous server app). I've tried both relative and absolute paths ( '/myserver/dev/includes/leftnavbarag.htm' ) without solution. I've even tried full http paths and it doesn't work. The file calling the include resides in /myserver/dev/subsections/news/default.htm.
"news" is a newly-created directory, after the PHP parsing was set up. Is it possible that PHP parsing isn't working in this subdirectory of the virtual server 'myserver'?
If it's a problem with the include_path, can you tell me what it needs to be?
Thanks!