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

Dmitry Dulepov [typo3] dmitry at typo3.org
Sat Jan 5 21:48:03 CET 2008


Hi!

Denis Bilodeau wrote:
> I have been using Typo3 for years without actually knowing PHP, on which 
> I now begin.
> 
> 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?

Creating an extension is proper method. Learn good ways from the beginning. Tutorials can be found on typo3.org.

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"Nothing is impossible. There are only limits to our knowledge"


More information about the TYPO3-english mailing list