http_client.php shopping cart error
I am using a php based shopping cart. For some reason when I set up and account in the program, and try to check out I get this looping error.
Warning: feof(): supplied resource is not a valid stream resource in /includes/classes/http_client.php on line 374
Warning: fgets(): supplied resource is not a valid stream resource in /includes/classes/http_client.php on line 375
The funny thing about this is that this is Oscommerce based program. I have tried 3 different flavors of this program, and I keep running into the same error on all different programs. I can not get anybody to respond to me.
Here is the code information in question.
/**
* processHeader() reads header lines from socket until the line equals $lastLine
* @scope protected
* @return array of headers with header names as keys and header content as values
**/
function processHeader($lastLine = "\r\n") {
$headers = array();
$finished = false;
while ( (!$finished) && (!feof($this->socket)) ) {
$str = fgets($this->socket, 1024);
$finished = ($str == $lastLine);
if (!$finished) {
list($hdr, $value) = split(': ', $str, 2);
Can you help me? I have searched all over the net for answers.
|