[TYPO3] How to include PHP scripts on a page?

Bartosz Aninowski bart at REM-IT-sonik.pl
Sat Jan 5 18:32:25 CET 2008


> I need to put some script on a page to retrieve sunrise and sunset time
> from a file (I have some bits of code ready for that). But I am having 
> trouble at the "Hello World" level (ahem...): how to include a personal 
> PHP script in Typo3?
>
> The '<?php' bit is stripped if I put the code directly on the template or 
> in a text element. Should I try to set some user TS to allow it or is 
> there a better method?

tempTs = PHP_SCRIPT_EXT
tempTs.file = fileadmin/zone.inc
page.100 < tempTs

look for PHP_SCRIPT_EXT in documentation 




More information about the TYPO3-english mailing list