Including foreign php files in static pages

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
TimBeam
Regular
Posts: 71
Joined: Fri Jun 22, 2007 3:24 pm
Contact:

Including foreign php files in static pages

Post 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>
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Including foreign php files in static pages

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply