public function setConfig($path){
        if (file_exists($path) && is_readable($path)){
            include($path);
            $this->config = $path;
            $this->setLogPath($logpath);
            if (isset($AMAZON_SERVICE_URL)) {
                $this->urlbase = rtrim($AMAZON_SERVICE_URL, '/') . '/';
            }
        } else {
            throw new Exception("Config file does not exist or cannot be read! ($path)");
        }
    }
public function setConfig($path){
        if (file_exists($path) && is_readable($path)){
            include($path);
            $this->config = $path;
            $this->setLogPath($logpath);
            if (isset($AMAZON_SERVICE_URL)) {
                $this->urlbase = rtrim($AMAZON_SERVICE_URL, '/') . '/';
            }
        } else {
            throw new Exception("Config file does not exist or cannot be read! ($path)");
        }
    }
public function setConfig ( $ path ) { if ( file_exists ( $ path ) && is_readable ( $ path ) ) { include ( $ path ) ; $ this -> config = $ path ; $ this -> setLogPath ( $ logpath ) ; if ( isset ( $ AMAZON_SERVICE_URL ) ) { $ this -> urlbase = rtrim ( $ AMAZON_SERVICE_URL , '/' ) . '/' ; } } else { throw new Exception ( "Config file does not exist or cannot be read! ($path)" ) ; } }
Set the config file.

This method can be used to change the config file after the object has
been initiated. The file will not be set if it cannot be found or read.
This is useful for testing, in cases where you want to use a different file.
@param string $path <p>The path to the config file.</p>
@throws Exception If the file cannot be found or read.
Set the config file .