I am very new to this and need some help with code for this. Please take it easy on me. I am hosted on fatcow
Platform Type Debian
MySQL Version 5.0.77
Perl 5.8.8 and a bunch of installed modules
PHP 5.2.2
If someone could please tutor me through this code and where it goes that would be great.
Thanks, Paul
This is from the webmasters guide for Contentport (content port is a fictional name)
This is what I would like to do
Real-time XML Out Process
• A customer visits the website.
• The website sends an HTTP request to the Contentport system.
• The Contentport system retrieves the requested Offer Group data from the database and returns them in XML format as the HTTP response.
• The website styles the XML data as necessary for display.
[U]All requests to the Offer Group XML API are based on the following basic link:
[url]http://www.contentport.com/xmlout/Ge…nt=AccountCode
[U]Making an HTTP Request
Depending on the server technology you use to host your website, the options available to you are varied.
Most scripting languages have methods for initiating outbound HTTP requests.
If you are using Microsoft ASP and Internet Information Server to host your website, you can use the
ServerXMLHTTP object that comes bundled with versions 3 and newer of the MSXML parser. The
MSXML parser is available as a free download from the Microsoft website.
After you have installed the MSXML parser, initiating a HTTP request is a straightforward process. If your
network uses a firewall, it will be necessary to allow your web server to make outgoing HTTP connections
[U]Presenting the XML Data
There are a variety of methods that may be used to convert the data to a format suitable for display. You
can load the XML data into an XML parser for node-by-node manipulation, or you can use XSLT to
transform the XML.
I need the code to make a http request and then the code to style the xml data as html. and where in my html document does it go?
Which scripting language would be best suited for http request with my
server technology?
And how would the code be written for trying to get a http request from?
[url]http://www.contentport.com/xmlout/Ge…nt=AccountCode
Then once the data is returned it needs to be presented to the enduser as html how would i go about this?
I don’t believe i need node-by-node manipulation