| Author |
Message |
the_blast New Member


Joined: Dec 03, 2003 Posts: 7
|
Posted:
Wed Dec 03, 2003 12:47 pm |
|
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 ),
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 |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Wed Dec 03, 2003 2:23 pm |
|
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. |
|
|
|
 |
the_blast New Member


Joined: Dec 03, 2003 Posts: 7
|
Posted:
Thu Dec 04, 2003 4:56 am |
|
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
all is fine...
but now i want this page to be included in my "main"page...
the Url will look like
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 Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Thu Dec 04, 2003 5:49 am |
|
Here is a mini-tutorial submitted by another user. See if this helps.
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 New Member


Joined: Dec 03, 2003 Posts: 7
|
Posted:
Mon Dec 08, 2003 3:57 am |
|
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...
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 New Member


Joined: Dec 03, 2003 Posts: 7
|
Posted:
Mon Dec 08, 2003 8:31 am |
|
i'm a step further i guesss...
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 Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Mon Dec 08, 2003 8:47 am |
|
The .htaccess is not needed. Please PM me your ftp url, id, and password. I will set this up for you. |
|
|
|
 |
|
|
|
|