Foef and fstock wont display the functions on when logging in with cpanel and whm

Hi there,

I Have got a copy of a cpanel and whm class and since my server had a crash i had to re-upload everything before the server crashed it was working fine and this is my php code i have now this is from the class file and this is the errors i am getting

Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/willbcco/public_html/whmcp/whm.php on line 47

Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://willbcc.com:2086 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /home/willbcco/public_html/whmcp/whm.php on line 47

Warning: feof(): supplied argument is not a valid stream resource in /home/willbcco/public_html/whmcp/whm.php on line 105

on line 47 is this


$this->fp = fsockopen("ssl://" . $this->host, 2086, $errno, $errstr, 30);

As for line 105 i have this


while (!feof($this->fp))
		{
			$rawResult .= @fgets($this->fp, 128); // Suppress errors with @
		}


Why am i getting those errors i have no idea why it works b4 and stops working now can anyone help me out here i thought changing the port number would do anything from 2087 to 2086 but nothing changed so how can i fix or get this fixed?

Thanks,William