lordphate Posted August 5, 2006 Share Posted August 5, 2006 Warning: socket_read() unable to read from socket [104]: Connection reset by peer in /home/*****/public_html/library/whm.php on line 259Warning: array_keys(): The first argument should be an array in /home/*****/public_html/order/next.php on line 37Warning: array_key_exists(): The second argument should be either an array or an object in /home/*****/public_html/order/next.php on line 44----------Warning: socket_read() unable to read from socket [104]: Connection reset by peer in /home/*****/public_html/library/whm.php on line 259Warning: array_key_exists(): The second argument should be either an array or an object in /home/*****/public_html/order/nobill_setup.php on line 183Okay here's 259(WHM.PHP)[code=php:0] $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) { <-----259 if (!$inheader) { $data .= $buf; } if(preg_match("'\r\n\r\n$'s", $buf)) {[/code]Here's next.php(line 37 +44)[code=php:0]if (empty($_SESSION[username])) {if (empty($_POST[STREETADDRESS])) $postcheck = Fail;}<--37if (empty($_SESSION[username])) {if (empty($_POST[PHONE])) $postcheck = Fail; }if (empty($_POST[DOMAIN])) $postcheck = Fail;if (empty($_POST[EXTENSION])) $postcheck = Fail;if (empty($_POST[USERNAME])) $postcheck = Fail; <--44if (empty($_POST[PASSWORD])) $postcheck = Fail;if (empty($_POST[EMAIL])) $postcheck = Fail;if ($postcheck == Fail) $reason = 'Error : You did not fill in all the required fields';[/code]Thanks in advance :D Quote Link to comment Share on other sites More sharing options...
lordphate Posted August 5, 2006 Author Share Posted August 5, 2006 Any thoughts Quote Link to comment Share on other sites More sharing options...
CTM Posted August 5, 2006 Share Posted August 5, 2006 First off, you should put !== FALSE on line 259, that might be your error. Else, it's exactly as it says. It can't read from the socket =/ 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.