?
Solved

Need PHP and XML DOM equivalents for some ASP code

Posted on 2006-11-12
5
Medium Priority
?
270 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

752 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