Is there any way to make an include_once call like this:
include_once "/includes/file.php" -- refer to an include file in the web-root, not the document root? I would like to use an opening slash for consistancy with the rest of my file references.
I have shared hosting (unix running apache as a module, I believe). I was able to set the include_path to my web root for includes by modifying my .htaccess file. However, the include only works if I omit first slash--
include_once "includes/file.php" -works
include_once "/includes/file.php" -fails
This is my .htaccess file from my web root:
php_value include_path ".:/home/acct_name/public_html:../home/acct_name/public_html"
Is there anyway to modify this statement (or make another setting on a shared host machine) which will allow for an opening slash in the include_once statement?