我正在使用 Micah Carrick 的 PHP Paypal IPN 集成类并且在 paypal.class.php 中有如下代码:
function __construct() {
// initialization constructor. Called when class is created.
$this->paypal_url = 'https://www.paypal.com/cgi-bin/webscr';
$this->last_error = '';
$this->ipn_log_file = '.ipn_results.log';
$this->ipn_log = true;
$this->ipn_response = '';
但是,这个文件没有被创建。我是否需要做一些特别的事情才能让它发挥作用?
如果我需要设置权限,我应该对此设置权限还是调用 php 脚本(包括上述文件)?
最佳答案
请注意,.ipn_results.log
中的点将隐藏 Unix/Linux 系统上的文件。你可能是说
$this->ipn_log_file = './ipn_results.log';
但最好在此处指定完整路径以避免混淆。
关于PHP Paypal IPN 集成类不记录 IPN 结果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5050852/