【问题标题】:PHP Paypal IPN Integration Class not logging IPN resultsPHP Paypal IPN 集成类不记录 IPN 结果
【发布时间】:2011-02-19 12:49:11
【问题描述】:

我正在使用 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脚本(包括上面的文件)上设置权限?

【问题讨论】:

  • 尝试指定完整路径。你知道前面的. 会隐藏文件吗?
  • @Pekka - 非常尴尬的表情是什么!
  • 哈哈哈!好问题。 :) 如果解决了问题,我会将其添加为答案。

标签: php paypal paypal-ipn


【解决方案1】:

请注意,.ipn_results.log 中的点将隐藏 Unix/Linux 系统上的文件。你可能是说

$this->ipn_log_file = './ipn_results.log';

但最好在此处指定完整路径以避免混淆。

【讨论】:

    猜你喜欢
    • 2011-09-01
    • 2017-12-26
    • 2013-02-06
    • 2021-01-18
    • 2012-04-08
    • 2011-07-14
    • 2011-12-12
    • 2012-01-20
    • 2014-07-31
    相关资源
    最近更新 更多