If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
php include  XML
Forum Index » Advanced Guestbook Forum
Author Message
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
[WWW]
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
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
[WWW]
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
 
Forum Index » Advanced Guestbook Forum
Go to:   
Based on the open source JForum