Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> KISGB General Support
Author Message
KnightWolfJK
New Member
New Member



Joined: Jul 25, 2003
Posts: 7

PostPosted: Fri Jul 25, 2003 1:45 am Reply with quote

Morning... I'd like to include KISGB in the my current site structure and I was hoping to get some tips on the best way to do this. I've turned off KISGB's header and footer (I'll include credits elsewhere) and I see the notes about $root_document. KISGB is installed in /scrip/comments. I followed the FAQ- my $root_document is set to "/guestbook.php" and in guestbook.php I'm using
Code:
<?php include ("/home/vice/www/scrip/comments/index.php");?>

The error I'm getting is
Code:
Warning: OpenDir: No such file or directory (errno 2) in /home/www/vice/scrip/comments/index.php on line 160

Unable to access themes file

Any suggestions? Thanks
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Fri Jul 25, 2003 2:15 am Reply with quote

Do you really have a directory called 'scrip' or should it be 'script'? That error means that you have a pathing error in /home/vice/www/scrip/comments/index.php. And if that is correct, I think you should just be using 'include('index.php'). Here is another link for reference http://www.ravenwebhosting.com/public/downloads/embed_kisgb.doc
 
View user's profile Send private message
KnightWolfJK







PostPosted: Fri Jul 25, 2003 7:42 am Reply with quote

"scrip" is correct... the path is correct as well, I've verified that. The url to match is Only registered users can see links on this board! Get registered or login!. I believe both versions of that PHP syntax are correct as well- the "embedding kisgb" doc you linked to uses <?php include("filename.php");?> as well.

Thanks for your time... Any other ideas? Here's a link to Only registered users can see links on this board! Get registered or login!.
 
Raven







PostPosted: Fri Jul 25, 2003 7:45 am Reply with quote

Did you try include('index.php'); ?
 
KnightWolfJK







PostPosted: Fri Jul 25, 2003 7:50 am Reply with quote

I got it... apparently the file you're using to include kisgb needs to be in the same directory as kisgb's index.php.

For anyone else who has the same problem:
for example, if
    kisgb is installed in /scrip/comments

    you're using <?php include("index.php");?> on guestbook.php

    and you've specified guestbook.php in user.prefs.php as your $root_document

then you need to ensure that guestbook.php resides in /scrip/comments as well.
 
Raven







PostPosted: Fri Jul 25, 2003 8:07 am Reply with quote

That actually is spelled out in the documentation Wink I just assumed that was the case. Sorry.
 
KnightWolfJK







PostPosted: Fri Jul 25, 2003 8:14 am Reply with quote

I noticed that the example was done in that fashion... I assumed I could use alternate paths- my fault.

Thanks again
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> KISGB General Support

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©