Check if ip online/offline?

Hello campers!

Im making a WoW site for a server. And I want to have a server status on the site. I don’t know very mutch how it works with servers sites. If there is a script that checks if the server ip is online or offline. I don’t know…

But if there is anyone who understands this better then I do, please help out!

Thankful for all answers (-: