Forum Moderators: coopster
For example, I have site-specific-settings.php and have already loaded it into the home.php. Then, when I go to another page, say another.php, I want to check if the settings are already loaded, if not, then load them, otherwise, just display the page.
Is this possible? Or any alternatives?
I asked because I have a header.php, and menu.php which can be called from any directory level, thus, I defined it as:
define ("ROOT_SITE", "http://dir1/").
and call the graphics as
<?php echo(ROOT_SITE)?>images/image1.jpg
However, when I move to another page, or call the page by itself from the browser, I get an error.
[uk.php.net...]