RE: [PEAR] [ANNOUNCEMENT] Net_Ping-2.4 (stable) Released.

From: Date: Tue, 10 Feb 2004 12:25:36 +0000
Subject: RE: [PEAR] [ANNOUNCEMENT] Net_Ping-2.4 (stable) Released.
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10599@lists.php.net to get a copy of this message
On Tue, 10 Feb 2004 at 13:20:05, James Nunnerley wrote: > Hi Folks, > > Just tried using this package, however I think the documentation is > wrong. It suggests the following should work: > > <?php > > require_once 'Net/Ping.php' ; > > $ping = new Net_Ping; > $ping->setArgs(array("count" => 5), > "size" => 32), > "ttl" => 512) > ) > ); > var_dump($ping->ping("example.com")); > > ?> > > However, I think, and I'm no expert, that the array setting is wrong. > Can someone help me out? I suspect you meant: $ping->setArgs(array("count" => 5, "size" => 32, "ttl" => 512 ) ); which should work without a problem. Give it a try. Regards, Stefan

« previous php.pear.general (#10599) next »