Re: includes
| From: | Chris Hayes | Date: | Mon, 05 Apr 2004 15:32:36 +0000 |
| Subject: | Re: includes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182376@lists.php.net to get a copy of this message | ||
At 16:47 5-4-04, you wrote:
Hello all, I have a problem. My directory list is similar to this: root tmpl inc forums test_forum messages test_forum1It is vital to understand that relative paths in the include command always are relative to the file as opened in the browser. Therefore if you open index.php, which includes inc/somefile.php, and somefile.php includes "anotherfile.php", you may expect it looks in the inc directory but in reality it looks in the root directory, because it looks relative to index.php..messagesMy question is in the test_form and message forums. How do I do the include files to read from the tmpl and inc??
I can get the include files to work as long as they are in the root (include "tmpl/header.htm"). I hope I explained it right. :) ~WILL~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php