Jump to content
Larry Ullman's Book Forums

scottfennell

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About scottfennell

  • Rank
    Newbie
  1. And is it fair to say that I'll get a full review of using Curl to interact with paypal if I pick up Larry's e-commerce book? I've never used Curl before.
  2. Thanks very much, Rob. This isn't really my server, it's the server for a design shop i'm doing work for. Can you think of any reason why this is not enabled already? What are the unforeseen consequences of enabling it? I just don't feel like I have any context here.
  3. Is there some way to check that php is configured correctly for it? My host support said they had no idea what the problem was. Anything to be gleaned from the phpinfo() that I linked to?
  4. Hey Larry, After searching, I see that you're quite right: Your new book does cover IPN. Feel free to move this post if you want. I tried changing the ssl to https but all that did was change the error message to: Warning: fsockopen() [function.fsockopen]: unable to connect to https://www.paypal.com:443 (Unable to find the socket transport "https" - did you forget to enable it when you configured PHP?) in/home/adven/avclients.com/belovedsamoa/latest/ipn.php on line 14
  5. FYI, here is my ipn script: <?php /** * Template Name: IPN * */ $wpdb; // read the post from PayPal system and add 'cmd' $req = 'cmd=_notify-validate'; foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } // post back to PayPal system to validate $header = "POST /cgi-bin/webscr HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; $fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30); if (!$fp) { // HTTP ERROR } else { fputs ($f
  6. Hey Guys, I learned everything I know from Larry's books, but this question is not directly from any of his books. But I really need some help! I've set up a script to listen for IPN from paypal. I see the IPN activity in my paypal IPN history. The listener script that I set up is supposed to change one row in my database (I'm adding a user_meta value to a wordpress user to flag him as a premium user). The database update is not happening. When I point my browser to the page where the ipn script is hosted, this is the error message I see: web browser to the page on which my
×
×
  • Create New...