Solved

Paypal error after change from PHP FastCGI to PHP ISAPI

Posted on 2011-09-30
4
365 Views
Last Modified: 2012-06-22
Hi all,

Need some help here. I am running on PHP 4.3.4 Fast CGI for my e-commerce platform which uses Paypal as a gateway.

However, due to the instability of FastCGI, I have switched to ISAPI and all functions can work except Paypal.

Can I ask whether there is a difference if I use FastCGI or ISAPI for Paypal?

I attached the code we used which is successful when using under FASTCGI but fails under ISAPI.
expresscheckout.php
0
Comment
Question by:cq27
  • 2
  • 2
4 Comments
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 36891269
PHP 4.3.4

You have to fix that.  There is no support at all for PHP4 any more.  In fact, the PHP.net web site says this: All PHP users should note that the PHP 5.2 series is NOT supported anymore. All users are strongly encouraged to upgrade to PHP 5.3.8.

The upgrade is not optional; it is required and unfortunately it may be a big project.  In addition to the script attached to this question you will almost certainly need to refactor the code in this thing.
require_once ("paypalfunctions.php");

There are some resources that can help.  
https://www.x.com/developers
http://us2.php.net/manual/en/migration53.changes.php
0
 

Accepted Solution

by:
cq27 earned 0 total points
ID: 36894852
Hi all,

While waiting for the answer, I have checked on online forums and discovered the error was just a simple solution.

I needed to activate the CURL setting in ISAPI. After a test, it works fine now. There is no need to upgrade to PHP5.3.8 as Paypal originally worked fine in PHP434, just that I switched between FastCGI and ISAPI.
0
 

Author Closing Comment

by:cq27
ID: 36915558
I discovered the solution on my own via online forums.
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 36895236
There is no need to upgrade to PHP5.3.8

Uhh?

No offense meant... you can do whatever you want; it's not my problem.  But I would fire a programmer who saw the PHP.net home page and then told me something like that.  The lack of understanding about the PHP4 security implication alone is sufficient to terminate for cause.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Are you using email marketing software? If not, you're missing out on effortless marketing and the reaching of desired conversion rates through email marketing software.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now