[TYPO3-english] Is there a condition to check the OS of the server?
Dmitry Dulepov
dmitry at typo3.org
Tue Dec 16 14:58:22 CET 2008
Hi!
Christopher wrote:
> So it should be the following?
> if (TYPO3_OS == 'WIN') {
> return $os == "Windows";
> }
> else {
> return $os == "different";
> }
If you want to check Windows vs anything else, this will do:
function user_checkOS($os) {
return $os == 'Windows' && TYPO3_OS == 'WIN';
}
--
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