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
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
Fatal error: main(): Failed opening required 'header.html' (include_path='.:/usr/local/lib/php') in /home/content/r/m/o/rmosenkis/html/layout-top.php on line 16
I have created an /includes directory off the root that I would like to use for all included files. I need help setting the default include path.
Thanks in advance for the help!
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
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
Fatal error: main(): Failed opening required 'header.html' (include_path='.:/usr/local/lib/php') in /home/content/r/m/o/rmosenkis/html/layout-top.php on line 16
I have created an /includes directory off the root that I would like to use for all included files. I need help setting the default include path.
Thanks in advance for the help!