Page 1 of 1

Insert PHP Code in Template

Posted: Mon 7. Jun 2004, 23:09
by roliko
Hallo,

ich verwende erst seit Kurzem phpwcms und bin auf folgendes Problem gestoßen.
Ich möchte in ein Template meinen Counter einbinden. Dieser liegt als php Skript auf dem Server.
Alles was ich machen will ist ..
<?php require ("include/counter/count.php");
echo $html_result;
?>
Ich habe es schon mit dem {PHP} Tag probiert aber nichts ist gegangen.

Ich verwende Release 1.1-RC4 03-06-2004

cu Roland

Posted: Mon 7. Jun 2004, 23:14
by frold
the easiest way to do it is to use the replacement tag {PHP:myphp.php} in the template. Then put your php code in the file ...

Posted: Mon 7. Jun 2004, 23:16
by Pappnase
hallo

lege das script doch einfach mal in den root wenn das geht!?
{PHP:counter.php} aufrufen!?

Posted: Mon 7. Jun 2004, 23:16
by frold
see more replacement tags here:

http://www.fhss.de/replacement/replace_tags.htm

list made by Pappnase

Posted: Mon 7. Jun 2004, 23:18
by Pappnase
frold wrote:see more replacement tags here:

http://www.fhss.de/replacement/replace_tags.htm

list made by Pappnase
hello frold

thanks for publish! but i need also to update the list!
a few tags are changed and a few add!

in datei legen

Posted: Mon 7. Jun 2004, 23:35
by roliko
hallo

habe die zeilen in ne datei gelegt und jetzt funktioniert es.

danke und gute n8

Roland
--
new webpagedesign test on http://www2.roli.at

Re: Insert PHP Code in Template

Posted: Tue 8. Jun 2004, 19:52
by Oliver Georgi
roliko wrote:Hallo,
...
Alles was ich machen will ist ..
<?php require ("include/counter/count.php");
echo $html_result;
?>
...
cu Roland
Geht auch so im Text selbst:

Code: Select all

[PHP]
require ("include/counter/count.php");
echo $html_result;
[/PHP]
Oliver