--- In [email protected], "phplist_jsh" <[EMAIL PROTECTED]> wrote:
>
> Is there a way, within PHP, to determine if it is running on a Windows 
> Server?
> 
> 
> James S. Huggins
> 
> 
> ...
>

You can echo out $_SERVER['SERVER_SOFTWARE'] and see if it's in there
(Look for win32), alternatively you can echo a global that has path
information and look for windows-style path names (e.g.
$_SERVER['SCRIPT_FILENAME'] == c:\inetpub\wwwroot\somescript.php).

Those are the quick and dirty ways that I know of.

Good luck,
-Nick

Reply via email to