Posted - 12/02/2002 : 07:47:22
I am trying to set up aPaypal IPN system but having difficulties, I think the problem is opening a socket to paypal. When I upload the following code and go to the URL I get the message 'Unable to establish socket with paypal Permission denied (13)'. Any ideas what would cause this?. If I run the script from my local machine it makes the connection o.k
$fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30);
$err_msg = "";
if (!$fp)
{
$err_msg = "Unable to establish socket with paypal $errstr($errno)";
echo "$err_msg";
}
else
{
$err_msg = "established socket with paypal $errstr ($errno)";
echo "$err_msg";
}
?>