Link to home
Start Free TrialLog in
Avatar of tr5
tr5

asked on

Need PHP and XML DOM equivalents for some ASP code

Hi

I need to interface to an online payment gateway via XML. The gateway company provides sample code to do this, but in ASP, not PHP. Here is the link to this code:  http://www.concordefsnet.com/Developers/XmlASPClassic.asp.
I need the equivalent code in PHP. I tried using the ASP2PHP.exe converter which gave me something I can't really use. So the question is, looking at the ASP code in the link above, is it possible to do the same thing in PHP?

Thanks
tr5
Avatar of tr5
tr5

ASKER

My PHP runs on Linux btw.
You could look at a php function called curl which allows you to interface with an external form script, or you could look at sending the results using XAjax (a DOM xml set of classes) at:  www.xajaxproject.org.

Hope this helps.
Avatar of tr5

ASKER

I am heard about curl. So looking at the ASP code in the link I posted: Could I create an XML request and send it via https using curl, as long as I get the format right? Would that accomplish the same thing?
ASKER CERTIFIED SOLUTION
Avatar of Mark Gilbert
Mark Gilbert
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Tr5, thanks for the points and the grade.  I'm pleased I was able to assist you.  Have a great day.