Solved

Need PHP and XML DOM equivalents for some ASP code

Posted on 2006-11-12
5
219 Views
Last Modified: 2008-03-06
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
0
Comment
Question by:tr5
  • 3
  • 2
5 Comments
 

Author Comment

by:tr5
ID: 17924509
My PHP runs on Linux btw.
0
 
LVL 18

Expert Comment

by:ingwa
ID: 17928783
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
 

Author Comment

by:tr5
ID: 17928813
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
 
LVL 18

Accepted Solution

by:
ingwa earned 500 total points
ID: 17928872
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
 
LVL 18

Expert Comment

by:ingwa
ID: 17929210
Hi Tr5, thanks for the points and the grade.  I'm pleased I was able to assist you.  Have a great day.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

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

13 Experts available now in Live!

Get 1:1 Help Now