Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
how to "include" a guestbook?
Old 04-05-2005, 07:07 AM how to "include" a guestbook?
Junior Talker

Posts: 2
Trades: 0
i have a page, written in php. i wana include a guestbook, wich is in a sub-folder (it contains more than 10 files).
with the "normal"-include tag it doesn't work, with chdir it shows the guestbook, but i can't entry new entrys...

it looks like that:

PHP Code:
<? 
  
if(isset($_GET['d'])) 
  { 
      if( 
$_GET['d'] == "guestbook" 
    { 
        
chdir("guestbook/");
        include 
"index.php";
    } 
    else 
    { 
          include(
$_GET['d'].".php"); 
    } 
  } 
  else 
  { 
      include(
"home.php"); 
  } 
  
?>  </P>
look page at: http://circle-ape.ch/index2.php?d=guestbook

how can i make, that it works?

thanks for your request

--------
sorry that my english is awful....
le-chef is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-05-2005, 08:20 AM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
what's wrong with include("guestbook/index.php"); ?

With regards new entries, we'd have to see the code that runs the guest book itself to advise.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 04-05-2005, 11:20 AM
Junior Talker

Posts: 2
Trades: 0
it doesn't work with include("guestbook/index.php") b/c it can't load the other files...

the guestbook is from woltlab (burning book)
le-chef is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to how to "include" a guestbook?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.52059 seconds with 12 queries