PayPal 403 Forbidden - 拒绝访问服务器上的资源

时间:2013-06-18 12:07:46

标签: php paypal paypal-ipn

我的网站多年来一直运作正常。但是,今天我的paypal集成停止了工作。通常它会显示立即购买按钮,但现在却出现以下错误: 403禁止 拒绝访问服务器上的此资​​源!

// Custom Paypal Hash = IP|||||Shoppingcart|||||DBID|||||Language
            $custom = getRealIpAddr()."|||||".$_SESSION['cart']."|||||".makeSafe($_GET['i'])."|||||".$lang;
            $pphash = create_paypal_hash(makeSafe($_SESSION['cart']), '', create_password('########'), $custom);
            $tosend = base64_encode(urlencode($pphash));
            $cgi = "http://www.********.com/pl/b.pl?a=".$tosend; // TEST LINE
            echo file_get_contents($cgi);

如果我手动导航到URL http:// * * .com / pl / b.pl?a = fsdfdsfsd它会正常显示购买按钮。

b.pl文件的权限是0755

0 个答案:

没有答案
相关问题