Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8821871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:57:39+00:00 2026-06-14T05:57:39+00:00

In paypal’s IPN sample code for PHP5.2 , on the last lines, they got

  • 0

In paypal’s IPN sample code for PHP5.2, on the last lines, they got a comment to “log for manual investigation”.

else if (strcmp ($res, "INVALID") == 0) {
    // log for manual investigation
}

What kind of info should I log and how ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:57:40+00:00Added an answer on June 14, 2026 at 5:57 am

    Well you have to log the answer you got from paypal via the $_POST vars.

    If you use a framework or CMS it might have a logging function. Otherwise you can use PHP’s error_log function

    For example:

    $post_vars = var_export($_POST, true);
    error_log("IPN Result: " . $res, 3, "/var/tmp/ipn.log");
    error_log("POST_VARS: " . $post_vars, 3, "/var/tmp/ipn.log");
    

    Where /var/tmp/ipn.log is a custom path where your log file should appear.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The PayPal IPN Guide documentation says clearly Post the request to www.paypal.com or www.sandbox.paypal.com,
Concerning the new Paypal SDK, there is almost no useful example code, and the
I am working on paypal IPN. Everything works fine, but i always get Payment_status
paypal ipn case is not calling in paypal pay now. In paypal button the
I followed https://www.paypal-labs.com/integrationwizard/ecpaypal/main.php to implement paypal sandbox account in my application. My code is
my paypal ipn php works correctl. i tested it out with sandbox account, and
I wanted to use Paypal's IPN service to verify payments for a recurring subscription
I am implementing a PayPal IPN page and would like to check to ensure
I'm using a PayPal IPN script to process subscription payments on my new project.
I used paypal IPN before to add the payments to a database, but now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.