Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...
Author Message
fury
Worker
Worker



Joined: Sep 09, 2003
Posts: 165

PostPosted: Sun Nov 02, 2003 3:21 pm Reply with quote

I am looking to make a block that pings a ip and port and if the port is active show a graphic and if it is not show a different graphic. I know that you need to use the array but not sure how to syntax it.
Thanks
Fury
 
View user's profile Send private message
fury







PostPosted: Sun Nov 02, 2003 5:24 pm Reply with quote

I found something like this can you help me with this a bit please

$command = "ping -c5 www.yoururl.com";
exec($command, $result, $rval);
for ($i =0; $i <sizeof($result); $i++) {
echo "$result[$i}<br>";
}
 
ecvej
Hangin' Around



Joined: Oct 10, 2004
Posts: 45
Location: Northampton, UK

PostPosted: Mon Nov 15, 2004 3:52 pm Reply with quote

try using sockets http://uk.php.net/manual/en/ref.sockets.php You'll have to check your host allows them though
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©