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

From: Date: Tue, 10 Feb 2004 12:22:55 +0000
Subject: Re: [ANNOUNCEMENT] Net_Ping-2.4 (stable) Released.
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10598@lists.php.net to get a copy of this message
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? yes the array looks weird. try:
$ping->setArgs( array( "count" => 5, "size" => 32, "ttl" => 512 ) ); HTH Jeroen

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