protected function detectOs()
{
if (stristr(PHP_OS, 'DAR')) {
return "Localhost_OSX";
} else {
if (stristr(PHP_OS, 'WIN')) {
return "Localhost_Windows";
} else {
if (stristr(PHP_OS, 'LINUX')) {
// @TODO: detect the different types of Linux here
return "Localhost_Unix";
} else {
return "Localhost_Unix";
}
}
}
}