Quixotix/PHP-PayPal-IPN — Issue #4: Concatenating to a variable that doesnt exist [yet]
Author: sjobe
Created: 2011-11-20 18:38:20+00:00
State: open

On lines 140 to 143 of ipnlistener.php, you have

$header .= "POST /cgi-bin/webscr HTTP/1.0\r\n";
$header .= "Content-Type: application/x-www-form-urlencoded\r\n";
$header .= "Content-Length: ".strlen($encoded_data)."\r\n";

but the $header variable isnt defined anywhere else, it was causing my code to fail. I modified it and changed the first line to

$header = "POST /cgi-bin/webscr HTTP/1.0\r\n";