smashp
smashp

Reputation: 163

How to check if an IP address is active or dead ? with php

How to check if an IP address is active or dead ? with php

Upvotes: 0

Views: 7208

Answers (3)

naseem haider
naseem haider

Reputation: 1

Try Free software"Advanced IP Scanner".It's really helpful for this purpose.

Naseem

Upvotes: 0

Caimen
Caimen

Reputation: 2619

Is this an IP address on a network, or a server IP address? You could use PHP's exec command;

$output = exec('ping 127.0.0.1');

output will equal the executed command output;

Upvotes: 1

Cydonia7
Cydonia7

Reputation: 3826

You can use Net_ping Pear's package to achieve this.

Upvotes: 0

Related Questions