Ok, I undersatand the theory, but not the execution. What exactly should I put at the header of my global_links.php page? What should I put at the head of the pages that I want to call the global_links.php page?
At the head of my global_links.php page, I have:
<?php
session_start();
require($_SERVER['DOCUMENT_ROOT'].'global_links.php');
?>
And at the head of the pages calling the global_links.php file I have:
<?php
session_start();
?>
I keep getting this error message:
Warning: main(/home/content/m/b/o/mborish2000/htmlglobal_links.php): failed to open stream: No such file or directory in /home/content/m/b/o/mborish2000/html/selling/sample.php on line 4
Warning: main(/home/content/m/b/o/mborish2000/htmlglobal_links.php): failed to open stream: No such file or directory in /home/content/m/b/o/mborish2000/html/selling/sample.php on line 4
Fatal error: main(): Failed opening required '/home/content/m/b/o/mborish2000/htmlglobal_links.php' (include_path='.:/usr/local/lib/php') in /home/content/m/b/o/mborish2000/html/selling/sample.php on line 4
I can't think of how else to call the page.