random1 Posted October 17, 2008 Share Posted October 17, 2008 How do you determine if the web server is Windows or Linux based? Link to comment https://forums.phpfreaks.com/topic/128791-determine-windows-or-linux/ Share on other sites More sharing options...
ratcateme Posted October 17, 2008 Share Posted October 17, 2008 this could work if(substr($_SERVER['PATH'],0,1) == '/'){ //is linux }else{ //is windows } seeing all paths in linux start with a / it "should" work (Not tested) Scott. Link to comment https://forums.phpfreaks.com/topic/128791-determine-windows-or-linux/#findComment-667686 Share on other sites More sharing options...
discomatt Posted October 17, 2008 Share Posted October 17, 2008 phpinfo(); or echo $_SERVER['SERVER_SOFTWARE']; Link to comment https://forums.phpfreaks.com/topic/128791-determine-windows-or-linux/#findComment-667687 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.