name = $name; $this->url = $url; $this->err = ''; } function weblogPing($server='',$path='') { $path = trim($path); $client = new IXR_Client($server,$path); $client->timeout = 5; $client->useragent .= ' -- DotClear/'.DC_VERSION; $client->debug = false; $ret = $client->query('weblogUpdates.ping',$this->name,$this->url); $err = $client->getErrorMessage(); unset($client); if ($ret !== false) { return true; } else { return $err; } } } ?>