try using the absolute path to the file e.g.
"Scott" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have PHP4 on both a windows IIS server and a windows apache server. The
> include function only works in the same directory of the file I wish to
> ex. www.include.com/default.php
> all files in same directory (i guess the root)?
> include 'test.inc'
> everything works fine. Here's where I have the problem.
> Now I want to store all my includes in one directory www.include.com/inc
> include 'inc/test.inc'
> that doesn't work>>>
> Warning: Failed opening 'test.inc' for inclusion (include_path='')
> Can anyone help me with this???
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php