Author |
Message |
03/09/2005 20:29:50
|
Wiz-of-oz
Newbie
Joined: 13/08/2005 00:32:29
Messages: 3
Offline
|
what should I do to be able to php include files (containing my main menu) that are located outside guestbook folder.
I have put
include("menu_top.inc");
to index.php
but then I had to duplicate menu_top.inc in to guestbook dir, which I'd prefer not.
I have tried:
include("../menu_top.inc");
include("./menu_top.inc");
include($_SERVER['DOCUMENT_ROOT'].'/menu_top.inc');
no luck, any help please
|
|
03/09/2005 21:41:22
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Read THIS
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
03/09/2005 21:52:14
|
Wiz-of-oz
Newbie
Joined: 13/08/2005 00:32:29
Messages: 3
Offline
|
Thanks Carbonize, but I actually already managed to successfully customize templates adding "include("menu_top.inc");" line to index.php, comment.php and addentry.php files.
I ask is it possible to have my .inc files in higher level directory, not in main guestbook dir. (e.g. in site root)
|
listen to my music at www.abelkorzeniowski.com |
|
03/09/2005 22:28:17
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
You can have your included files anywhere you want you just need to specify the full path for the file such as mnt/user/htdocs/mysite/public_html
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
|