[TYPO3] How to add php code into a page?

Michael Niemann xml.transformator at yahoo.com
Fri May 30 14:32:11 CEST 2008


look for the extension php_content. it's not in TER but I posted a link a few days ago. don't let other authors access the extension though.

regards
michael

Ronald Wiplinger <ronald at elmit.com> wrote: I would like to add these lines into a page:

$dday = mktime(0, 0, 0, 3, 29, 2001);
$diff = time() -$dday;
$days = $diff / 86400;
printf( "(%d day%s young)", $days, $days == 1 ? "" :"s"); ?>

It is just a calculation of days between today and March 29, 2001.

I added above code into a pagecontent of type HTML.

What would be the correct way?

bye

R.

_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english


       


More information about the TYPO3-english mailing list