Solved

Need PHP and XML DOM equivalents for some ASP code

Posted on 2006-11-12
5
250 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:Mark Gilbert
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:
Mark Gilbert 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:Mark Gilbert
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…

827 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