Page 1 of 1

Can you use includes?

Posted: Tue Jul 10, 2007 10:10 pm
by thegrrl
Script URL: http://silver-charm.org/gb ( i realize it redirects to another url, which is a hosting issue i am looking into)
Version of script: 1.5
Hosting company: tfcph.com
URL of phpinfo.php: http://silver-charm.org/phpinfo.php
URL of session_test.php: http://silver-charm.org/session_test.php
What terms did you try when SEARCHING for a solution: inclusive, include guestbook, php includes

Write your message below:

Hi thank you in advance for reading and helping me. What I'd like to know is how would I go about including my guestbook, with php includes like for example something like this <?php include("{$dir}gbook.php")?> I have no knowledge of php and doing it myself or I would do it. Bu was hoping someone knew how to do that, instead of linking the directory.

I hope i explained myself :)

I did find a post about it, but I'm sorry to say it don't really help me since I don't know what I'm suppose to or that is how to edit to be able to achieve this. This is the post i found viewtopic.php?t=1026&highlight=php+includes

Posted: Wed Jul 11, 2007 1:59 pm
by Klemen
Unless you know PHP (I see you don't :wink: ) and are able to modify gbook.php to work with your include system (would have to be edited to match your site setup) I don't suggest making any changes to gbook.php and including gbook.php file into other files won't work.

You will need to link directly to gbook.php and use header/footer.txt files to match the look to the rest of your site. A lot has been discussed about how to do that here.

Posted: Wed Jul 11, 2007 2:36 pm
by thegrrl
Thank you for the time you too to reply.