RE: [PHP-WIN] determine host platform - win32 / *nix

2003-03-23 Thread Eric Gach
n for it. As for the version number... I think there is something in the $_SERVER variable. Check you’re a phpinfo() page to find out. Hope that helps. ~ Eric Gach EvilWalrus.com Co-Administrator -Original Message- From: John M. Calvert [mailto:[EMAIL PROTECTED] Sent: Sunday, March 23, 2

RE: [PHP-WIN] determine host platform - win32 / *nix

2003-03-22 Thread Eric Gach
There's a few examples of this in the manual somewhere... but here's some basic code for it: if (strtoupper(substr(PHP_OS, 0,3) == 'WIN')) dl('module.dll'); else dl('module.so'); Hope that helps. ~ Eric Gach EvilWalrus.com Co-Administrator