|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
pear - net_ping - anyone?
Well, been off for a bit doing other things but back with avengence now and looking at pear.
Wonderful thing pear but I am little stuck on the ping stuff. I do not know if any of you are familar with Matt's traceroute, it is a cool unix app which pings each step of a traceroute, very useful. That is my ultimate goal if possible. Put I am stuck just getting a ping thru. I copied the example right out the pear manual. --------------------------- require_once 'Net/Whois.php' ; $ping = new Net_Ping; $ping->setArgs(array("count" => 5), "size" => 32), "ttl" => 512) ) ); var_dump($ping->ping("example.com")); ---------------- except I change the example/com to yahoo But all that happens is everything after the '$ping->' on the setargs line just displays on the browser, like I put an extra ?> in there, which I do not. My hosting does NOT allow me to use the ping.exe so I can't do that thru a system call. I get no errors at all, but could that be something they are doing, I will have to check that. |
|
#2
|
|||
|
|||
|
RE: pear - net_ping - anyone?
never mind I was doing something stupid!
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > pear - net_ping - anyone? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|