Problem with {php} ... {/php} command

eiNfach-heNNiNg

Joined: 2006-04-23
Posts: 30
Posted: Tue, 2006-05-23 16:37

Hi!
I've tried to add some php code in a *.tpl file.
I've heared that I have to use "{php} MY CODE {/php}".
So I tried to use this code:

Quote:
{php} include("http://eutin.basepage.de/gallery2/gbook/index.php") {/php}

To include a simple guestbook into my site (I am including my contents with html module).
If I go to the site with the named above content, I get these error:

Warning: main() [function.main]: URL file-access is disabled in the server configuration in /var/www/vhosts/eutin.basepage.de/httpdocs/gallery2/g2data/smarty/templates_c/%%1546324251/%%97^97D^97DED9BE%%HtmlGbook.tpl.php on line 3

Warning: main(http://eutin.basepage.de/gallery2/gbook/index.php) [function.main]: failed to open stream: no suitable wrapper could be found in /var/www/vhosts/eutin.basepage.de/httpdocs/gallery2/g2data/smarty/templates_c/%%1546324251/%%97^97D^97DED9BE%%HtmlGbook.tpl.php on line 3

Warning: main() [function.include]: Failed opening 'http://eutin.basepage.de/gallery2/gbook/index.php' for inclusion (include_path='.:') in /var/www/vhosts/eutin.basepage.de/httpdocs/gallery2/g2data/smarty/templates_c/%%1546324251/%%97^97D^97DED9BE%%HtmlGbook.tpl.php on line 3

But I dont understand these error, can someone help me?