Forum Moderators: coopster
require_once ('../../../path/to/include/file.php'); if the file to be included was outside the document root directory.
but I recently was forced to upgrade to php5 and apparently there is a bug in the require/include statements.
I was told by someone on Experts Exchange to use the following syntax:
require_once (dirname(dirname(dirname(__FILE__))) . 'path/to/include/file.php');
I can do require/include as long as the file to be included is inside the document root (even multiple directories deep) but anything outside is not found.
Any thoughts?