我的网站多年来一直正常运行。但是,今天我的贝宝集成停止工作。通常它会显示立即购买按钮,但现在却给出以下错误:403 Forbidden Access to this resource on the server is denied!
// 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