Homepage stats ping

Hi guys

I need a script that can ping a list of hosts and print the output to my homepage, with the result "running" or "dead".

I'm new in this so please be patient with me.

Can anybody help me?

You can use the ping with -c option and then, check the return value.