lordphate Posted August 8, 2006 Share Posted August 8, 2006 Warning: socket_read() unable to read from socket [104]: Connection reset by peer in /home/arshemn/public_html/library/whm.php on line 259Connection Not Yet Established.the code iss too long to post but here is 10 before and ten after[code=php:0] [code] $result = socket_connect ($socket, $address, $service_port); if ($result < 0) { $cpanelaccterr = "socket_connect() failed"; return; } $in = "GET $request HTTP/1.0\n"; socket_write($socket,$in,strlen($in)); $in = "Connection: close\n"; socket_write($socket,$in,strlen($in)); $in = "Authorization: WHM $authstr\n\n\n"; socket_write($socket,$in,strlen($in)); $inheader = 1; while(($buf = socket_read($socket, 512)) !== false) { if (!$inheader) { $data .= $buf; } if(preg_match("'\r\n\r\n$'s", $buf)) { $inheader = 0; }[/code][/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.