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
the_blast
New Member
New Member



Joined: Dec 03, 2003
Posts: 7

PostPosted: Wed Dec 03, 2003 12:47 pm Reply with quote

Hi all,

Im trying to incluse this wonderfull guestbook into my page..
i read all the manuals an everything is setup ok.

BUT ( there is always a but Smile ),
my mainpage is also called index.php an now it tries to include this page over and over again.

im quite new to include paths and i cant figure out what im doing wrong

Code:
<?php include('guestbook/index.php');?> </td> 

gives me the following error:

Fatal error: Failed opening required 'config.php' (include_path='.:/usr/local/lib/php') in /home/web/www.schoteroog.nl/data/guestbook/index.php on line 12

can somebody gives me directions how i can fix this...
i also tried to rename the index file of the guestbook to someting different but without luck...

thanx in adv
 
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Dec 03, 2003 2:23 pm Reply with quote

Are you trying to integrate this into a table or just as a stand alone link? The naming of the files is not the issue as everyone, including me, has that. As long as it's in a separate folder, it's ok.
 
View user's profile Send private message
the_blast







PostPosted: Thu Dec 04, 2003 4:56 am Reply with quote

Raven,
i have a site with 3 sections... ontop is the header with navigation, below left is a small section on which i project messages... and the rest is a section on which i project the contents of the page.

Layout is done with tables
all the files (which are located in the root) are included in the contents

guestbook however is in a folder guestbook which is located in the root.

what im trying to do is the folowing..
i created a file guest.php with a inclusion of index.php of the guestbook.

Code:


<table width="600" border="1" cellpadding="0" cellspacing="0" class="direction" >
<tr>
<td width="600" height="500" valign="top" >
<?php include('index.php');?> </td>
</tr>
</table>


this file guest is in the folder guestbook...
when i call this page directly like
http://www.mysite.nl/guestbook/guest.php
all is fine...

but now i want this page to be included in my "main"page...
the Url will look like http://www.mysite.nl/index.php?pagina=guest

But then the site goes crazy.. trying to load the "main"index.php over and over again and does not include guestbook.

hopes this clarify some things...
thanx for u're help

Brgds the_blast
 
Raven







PostPosted: Thu Dec 04, 2003 5:49 am Reply with quote

Here is a mini-tutorial submitted by another user. See if this helps. http://www.ravenwebhosting.com/public/downloads/embed_kisgb.doc

Also, please make sure you have read the documentation that I include with KISGB. I explain how to embed kisgb in a table. Let me know if this solves your install problems.
 
the_blast







PostPosted: Mon Dec 08, 2003 3:57 am Reply with quote

Hi raven,

I have read both info files... and some how id dont get it to work
as i said, i made i file guest.php which has a table with the inclusion of gast.php which is the actual guestbook...

if i make directlink to it it works without a problm but when i include it in the website i get errors...

in the config i tried to set the paths to languages/themes but without result...

http://www.schoteroog.nl/index.php?pagina=guest is the page and i get the following error...

Fatal error: Failed opening required 'config.php' (include_path='.:/usr/local/lib/php') in /home/web/www.schoteroog.nl/data/guestbook/gast.php on line 12

Maybe this rings a bel ????

Thanx for youre time..

Maybe it has something to do with the include path.. but i cant change that in the php.ini or webserver config...

Brgds The Blast
 
the_blast







PostPosted: Mon Dec 08, 2003 8:31 am Reply with quote

i'm a step further i guesss... Smile
i have put a htaccess file in my root directory

which contains
php_value include_path ".:/home/web/www.schoteroog.nl/data/:/home/web/www.schoteroog.nl/data/guestbook"

i dont have the include errors anymore.

But now i get the following:
Warning: fopen("kisgb.csv.php","a") - Permission denied in /home/web/www.schoteroog.nl/data/guestbook/gast.php on line 153
Unable to access kisgb.csv.php

Im trying to figure out what can cause this..

Any idee...

Brgds the_blast
 
Raven







PostPosted: Mon Dec 08, 2003 8:47 am Reply with quote

The .htaccess is not needed. Please PM me your ftp url, id, and password. I will set this up for you.
 
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 ©