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

Ton Akveld [netcreators] ton at netcreators.com
Fri May 30 12:42:57 CEST 2008


Hi Ronald,

Unfortunately it's not as simple as one should like...
See the TSRef for the case story on how to use include scripts.

Happy programming!

Ton



Ronald Wiplinger schreef:
> I would like to add these lines into a page:
>
> <?php
> $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