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_forum1
            .messages

My question is in the test_form and message forums.  How do I do the include
files to read from the tmpl and inc??

It 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.




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

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to