[TYPO3-english] Is there a condition to check the OS of the server?

Dmitry Dulepov dmitry at typo3.org
Wed Dec 17 20:26:28 CET 2008


Hi!

Christopher wrote:
> To come back to the problem: The docs are correct by saying that it ONLY 
> works correctly, if the code is directly(!) written in localconf.php.

It is an example!

> Adding the code using include/require(_once)() in localconf only works when 
> calling the page for the very first time.

localconf.php works every time when anything is called in TYPO3 (every page, BE or FE). require_once is necessary to let Install tool work properly, it sometimes includes this file more than once. If there is a function with the same name, there will be a PHP error. "once" means "once during this HTTP request.

> After that, the condition does no longer work correctly.
> Same with adding the code or an include/require(_once)() to extTables.php.

The reason must be different.

-- 
Dmitry Dulepov
TYPO3 core team
In the blog: http://typo3bloke.net/post-details/how_will_i_fix_bugs_in_extensions_from_now_on/
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book


More information about the TYPO3-english mailing list