Hi,
What is the correct way to use include in php calling the file from the top level?
I tried this:
include("/layout/page_top.php");
and get all kinds of errors like
Warning: main(/layout/page_top.php): failed to open stream: No such file or directory in /home/xxxxxxx/public_html/index.php on line 38
Warning: main(): Failed opening '/layout/page_top.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxx/public_html/index.php on line 38
Thanksi think there is a period at the start of it to start at the root spot...
include("./layout/page_top.php");
What is the correct way to use include in php calling the file from the top level?
I tried this:
include("/layout/page_top.php");
and get all kinds of errors like
Warning: main(/layout/page_top.php): failed to open stream: No such file or directory in /home/xxxxxxx/public_html/index.php on line 38
Warning: main(): Failed opening '/layout/page_top.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxx/public_html/index.php on line 38
Thanksi think there is a period at the start of it to start at the root spot...
include("./layout/page_top.php");