Jump to content

check server software


Craig Hopson

Recommended Posts

hi how can i check if the web server is apache, i have the crontab script which only works on apache servers so i would like something like

if($_SERVER['server_software'] == 'apache'){// do something here}

My server is apache yet if i echo "$_SERVER['server_software'];" it says its LiteSpeed which is based on apache Question:-How can i check if the web server is apache

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...