private function loadToken()
	{
		if (file_exists($this->cacheFolder."/token.txt"))
		{
			$fd = fopen($this->cacheFolder."/token.txt", 'r');
			$this->token = fgets($fd);
			fclose($fd);
		} else {
			$this->connect();
		}
	}
private function loadToken()
	{
		if (file_exists($this->cacheFolder."/token.txt"))
		{
			$fd = fopen($this->cacheFolder."/token.txt", 'r');
			$this->token = fgets($fd);
			fclose($fd);
		} else {
			$this->connect();
		}
	}
private function loadToken ( ) { if ( file_exists ( $ this -> cacheFolder . "/token.txt" ) ) { $ fd = fopen ( $ this -> cacheFolder . "/token.txt" , 'r' ) ; $ this -> token = fgets ( $ fd ) ; fclose ( $ fd ) ; } else { $ this -> connect ( ) ; } }
Load token from a file
Load token from a file