faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

19 of 30 people (63%) answered Yes
Recently 5 of 10 people (50%) answered Yes


Is possible to generate, send & receive back ICMP messages directly in PHP instead of external execution of ping?

Feb 19th, 2008 22:23
dman, Henrik Hansen, Matthews, http://www.ttnr.org

You can do that with sockets, by sending to a special port on the ip 
you want to send ICMP traffic to. It requires you know more about 
network traffic and might be a good idea to read the ICMP rfc too. 
You can get more information about sockets in PHP here: