PHP Paypal IPN 集成类不记录 IPN 结果
我正在使用 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 脚本(包括上述文件)设置权限?
I'm using Micah Carrick's PHP Paypal IPN Integration Class and have code in paypal.class.php as:
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 = '';
However, this file is not being created. Do I need to do something special to get it to work?
If I need to set permissions, do I set permissions on this or the calling php script (which includes the above file)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请注意,
.ipn_results.log
中的点将隐藏 Unix/Linux 系统上的文件。您可能的意思是,但最好在此处指定完整路径以避免混淆。
Note that the dot in
.ipn_results.log
will hide the file on Unix/Linux systems. You probably meanbut it is preferable to specify a full path here to avoid confusion.