Page 1 of 1

Including foreign php files in static pages

Posted: Mon Jul 09, 2007 12:53 am
by TimBeam
How it is possible to include foreign php files in static pages? I want to include the following code in the content field of a static page but it does not work.

Code: Select all

<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="100%"><?php
			include ('http://myhomepage.com/guestbook/gbook.php');
		?></td>
	</tr>
</table>

Re: Including foreign php files in static pages

Posted: Mon Jul 09, 2007 10:29 am
by garvinhicking
Hi!

please read http://board.s9y.org/viewtopic.php?t=41 ... nclude+php

You can use the smartymarkup plugin, or put custom smarty syntax into your .tpl file of the staticpage. Also read http://www.s9y.org/78.html in that case.

And please try to avoid to ask questions personally to me AND in the forums. This has created a duplicate overhead for me that shouldn't be necessary. Thank you. :-)

Regards,
Garvin