PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
KnightWolfJK
New Member
New Member


Joined: Jul 25, 2003
Posts: 7

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

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: 16987
Location: Kansas

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

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
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
KnightWolfJK
New Member
New Member


Joined: Jul 25, 2003
Posts: 7

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

"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 to the forums!
. 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 to the forums!
.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

Did you try include('index.php'); ?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
KnightWolfJK
New Member
New Member


Joined: Jul 25, 2003
Posts: 7

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

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.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

That actually is spelled out in the documentation Wink I just assumed that was the case. Sorry.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
KnightWolfJK
New Member
New Member


Joined: Jul 25, 2003
Posts: 7

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

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

Thanks again
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum