Creating a simple Ping Script - need help

I am looking to find/learn to create a simple script that can ping servers to see if they are down or not. I have searched online in tons of places and come up with a php script, but I don't have enough permissions to use the exec() commands. Could anyone help me create / point me in the direct of a script in any language that would enable to me ping specific servers that does not require administrative permission? Thanks.

Below is what I have thus far:

echo "Server Status by IP:<br>";

$sites = array();
$sites[] = '';  
$sites[] = '';

foreach($sites as $ip) {
// system() / shell_exec() / exec() - none work
$cmd = shell_exec("ping -c 1 -w 1 $ip");
$ping_results = explode(",",$cmd);
if (eregi ("0 received", $ping_results[1], $out)) { echo "Server is down"; }
if (eregi ("1 received", $ping_results[1], $out)) { echo "Server is up"; }

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

How about this script?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
This ASP script requires installing a component on the server.  Not sure if that's possible for you since you asked for a non-administrative permission script, but here it is anyway: (scroll all the way to the bottom for ASPPing)

What is the web server that you are using?  That'll help us give you a more appropriate scripting language.

nathanmxAuthor Commented:
I looked at that one previously and dismissed it, but since no other one worked, I had to try it. I ended up using only about 10% and doing 90% of my own coding, but the result worked. So I believe thanks is in order. ;)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.