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
tr5Asked:
Who is Participating?
 
Mark GilbertConnect With a Mentor Senior Performance EngineerCommented:
Although I haven't personally used Curl myself, yes, you could create a request and send it to the asp script.  I'm sure another expert here who's used Curl could assist you on that.  
0
 
tr5Author Commented:
My PHP runs on Linux btw.
0
 
Mark GilbertSenior Performance EngineerCommented:
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.
0
 
tr5Author Commented:
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?
0
 
Mark GilbertSenior Performance EngineerCommented:
Hi Tr5, thanks for the points and the grade.  I'm pleased I was able to assist you.  Have a great day.
0
All Courses

From novice to tech pro — start learning today.