Posted by Juliette on 08/20/06 13:36
werner huysmans wrote:
> I've written a CMMS program (http://www.mycmms.org) which is used by
> maintenance departments to manage their workload.
> One of the installation issues is that users must change the log file
> depending on whether they run Apache/PHP/MySQL on Windows (WAMPServer) or
> LINUX (LAMP). Is there a light solution to detect the OS of the Server.
> It MUST be light, because the log file is in a PHP part, which is always
> used in almost every script.
>
>
>
You might want to have a look at any of the following, although I don't
know how well they can be 'trusted'. Have a look at the php
documentation for them for more information:
$_SERVER["SERVER_SIGNATURE"]
$_SERVER["SERVER_SOFTWARE"]
$_ENV["SERVER_SOFTWARE"]
Navigation:
[Reply to this message]
|