Per the suggestion, I just added this line to the end of my htaccess file:
php_value include_path ".:/home/content/r/m/o/rmosenkis2/html/includes"
It crashed my site (gave me an Internal Server Error). Any thoughts?
Per the suggestion, I just added this line to the end of my htaccess file:
php_value include_path ".:/home/content/r/m/o/rmosenkis2/html/includes"
It crashed my site (gave me an Internal Server Error). Any thoughts?
I'm still having problems:
I have my includes in a folder off the root called "includes" (without the quotes).
Here's the script that I added to the top of my file right after <body>:
<?php
$old_inc_path = ini_get('include_path');
ini_set('include_path', $old_inc_path.':/includes');
?>...
Do I need to include this in every file that has an include? Is there any way to do this globally? (You are right -- I don't think I have access to php.ini, though I do have an .htaccess file that I can modify.
Hi,
I'm just learning php and am having trouble using includes with files that are not in the current directory. Here's the error message I get:
Warning: main(header.html): failed to open stream: No such file or directory in /home/content/r/m/o/rmosenkis/html/layout-top.php on line 16...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.