hello can u help me wit one class that not work |
[eluser]Unknown[/eluser]
Unable to load the requested class: robotclient the class is [code]<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * Client class for robot webservice * * Documentation: http://wiki.hetzner.de/index.php/Robot_Webservice_en * * Copyright © 2010 Hetzner Online AG * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ class RobotClient{ private $curl; private $baseUrl; private $httpHeaders = array(); /** * Class constructor * * @param $url Robot webservice url * @param $login Robot login name * @param $password Robot password * @param $verbose */ public function __construct($url, $login, $password, $verbose = false) { $this->baseUrl = rtrim($url, '/'); $this->curl = curl_init(); curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($this->curl, CURLOPT_USERPWD, $login . ':' . $password); curl_setopt($this->curl, CURLOPT_VERBOSE, $verbose); $this->setHttpHeader('Accept', 'application/json'); } /** * Class destructor */ public function __destruct() { curl_close($this->curl); }</code> and continue this is the all code https://robot.your-server.de/downloads/robot-client.zip sorry this is my first post and ask for help but i'm noob whit coding and i don't know what to do
|
Welcome Guest, Not a member yet? Register Sign In |