I've edited the various templates (for example header.php) and I need to be able to use the PHP function 'include()'.
E.g.
<?php include("include.php"); ?>
But the above line is written as is in the page source and it is not executed as PHP code.
Does anyone know how to get around this?
I have Advanced Guestbook 2.3.1 installed.
Many thanks!
22/10/2004 18:47:53
Subject:
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
What are you trying to use include for? I have used it in mine to integrate the guestbook into my site. I places the include codes at the start and end of both index.php and addentry.php.
Carbonize I am not the maker of the Advanced Guestbook
When you enter the Advanced Guestbook administration section, you can edit the templates via the web. I need to be able to use PHP includes in these templates.
If I understand it, you are doing the opposite of me. I'm integrating my web site into Advanced Guestbook as it suggests by editing it's header.php, footer.php, body.php etc. in templates/
22/10/2004 19:22:37
Subject:
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
In that case no. The templates are loaded as a string so the only PHP that works in them are the variables.
Carbonize I am not the maker of the Advanced Guestbook