determine host platform - win32 / *nix

From: Date: Sat, 22 Mar 2003 14:02:48 +0000
Subject: determine host platform - win32 / *nix
Groups: php.windows 
Request: Send a blank email to php-windows+get-19085@lists.php.net to get a copy of this message
Hello, how do I determine from code the host platform running PHP? For example, php.dl() requires a different module name under Win32 and *nix so for more portable code I would like to write something like: if (php_platform() == WIN32) dl('module.dll'); else dl('module.so'); Does this exist? John M. Calvert, M.Sc., MCSD 1310521 Ontario Inc. 49 Belmont Ave. Ottawa ON K1S 0V2 (613) 730-9851 http://members.rogers.com/john-m-calvert/

« previous php.windows (#19085) next »