I would like to know when using an include, whether I must use the absolute path or can I just use the relative path, which is what I prefer to use.
The following works:
include ("/var/sites/www/components/test.php")
This does not work:
include ("/components/test.php")
generates the error:
Warning: Failed opening '/components/test.php' for inclusion (include_path='.:/usr/share/pear') in /var/sites/www/components/test.php on line 1
"/var/sites/www" is the DocumentRoot of the site.
I am currently testing this on Apache 2.0 with PHP 4.2.2, not sure if this is a bug related to these versions?
Best Wishes,
Charlie