| Author |
Message |
KnightWolfJK New Member


Joined: Jul 25, 2003 Posts: 7
|
Posted:
Fri Jul 25, 2003 1:45 am |
|
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 |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Fri Jul 25, 2003 2:15 am |
|
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 |
|
|
|
 |
KnightWolfJK New Member


Joined: Jul 25, 2003 Posts: 7
|
Posted:
Fri Jul 25, 2003 7:42 am |
|
"scrip" is correct... the path is correct as well, I've verified that. The url to match is . 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 . |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Fri Jul 25, 2003 7:45 am |
|
Did you try include('index.php'); ? |
|
|
|
 |
KnightWolfJK New Member


Joined: Jul 25, 2003 Posts: 7
|
Posted:
Fri Jul 25, 2003 7:50 am |
|
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 Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Fri Jul 25, 2003 8:07 am |
|
That actually is spelled out in the documentation I just assumed that was the case. Sorry. |
|
|
|
 |
KnightWolfJK New Member


Joined: Jul 25, 2003 Posts: 7
|
Posted:
Fri Jul 25, 2003 8:14 am |
|
I noticed that the example was done in that fashion... I assumed I could use alternate paths- my fault.
Thanks again |
|
|
|
 |
|
|
|
|