|
Problem:
Improper PHP include code for 'config.php', this cause your web page couldn't find the right path to call the Links Directory scripts.
Solution:
To insure the appropiateness of all the PHP include codes, it is recommend that you use the include snippets that come along with full document path, instead of using relative path.
- Open the oneadmin/config.php file, and copy the value of Document Path, let say it is '/home/sitename/public_html/oneadmin/'.
- You must call the 'config.php' first, before calling the others. Your include should look something like this -
include_once("/home/sitename/public_html/oneadmin/config.php"); ?>
This code can be put anywhere in your web page, provided it is above any of the following two.
- Insert the below code to display your link directory's menu -
include("/home/sitename/public_html/oneadmin/linkmanager/home.menu.php"); ?>
- To display the body content of link directory, use the following code -
include("/home/sitename/public_html/oneadmin/newsletter/home.browse.php"); ?>
With this, the Links Directory will works regardless of the location of your web page.
|