Jump to content

Site Status In Php


Recommended Posts

Use fsockopen to open a connection to the server. If you just want to check if the server is accepting connections, all you need to check for is that the connection didn't time out. If the connection timed out then it couldn't find the server. That doesn't necessarily mean the server is offline, it just means the system with PHP on it could not reach the system you're testing.

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...