473,396 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

XML feed and response

I am a newbie to PHP and HTML. I need to recieve an XML string from
an outside source that in turns needs to be parsed to read a record
from a database and then return the answer. I have successfully
installed PHP 5 (Fedora Core 3) and recompiled it for my Informix DB.
I am able to query the DB using SQL commands and it works.

What I don't get (because I am not knowledgable in HTML) is how to
receive this string of data. I bought a book (PHP 5 Bible) and have
been reading about forms. Is the $_POST command what I need to use?
Once I get this XML string in PHP I think I can handle this until I
have to send back the result. I am guessing another $_POST command?

Also how could I simulate sending this request?

Thanks
Gary

Jul 17 '05 #1
5 2492
Hello, would you describe your requirements in more detail? Are you
implementing a web application? A web site in other words? Where does the
xml string come from? from the user? How does the user enter it? how is the
response is presented to the user? is the response put in to HTML?

konstantin

"Gary Quiring" <gq******@msn.com> wrote in message
news:kl********************************@4ax.com...
I am a newbie to PHP and HTML. I need to recieve an XML string from
an outside source that in turns needs to be parsed to read a record
from a database and then return the answer. I have successfully
installed PHP 5 (Fedora Core 3) and recompiled it for my Informix DB.
I am able to query the DB using SQL commands and it works.

What I don't get (because I am not knowledgable in HTML) is how to
receive this string of data. I bought a book (PHP 5 Bible) and have
been reading about forms. Is the $_POST command what I need to use?
Once I get this XML string in PHP I think I can handle this until I
have to send back the result. I am guessing another $_POST command?

Also how could I simulate sending this request?

Thanks
Gary

Jul 17 '05 #2
In article <kl********************************@4ax.com>, Gary Quiring wrote:
I am a newbie to PHP and HTML. I need to recieve an XML string from
an outside source that in turns needs to be parsed to read a record
from a database and then return the answer. I have successfully
installed PHP 5 (Fedora Core 3) and recompiled it for my Informix DB.
I am able to query the DB using SQL commands and it works.

What I don't get (because I am not knowledgable in HTML) is how to
receive this string of data. I bought a book (PHP 5 Bible) and have
been reading about forms. Is the $_POST command what I need to use?

First time i searched for this, i always found sites that talked about
$HTTP_RAW whatever... but i didn' have those variables...

Today i do it with:

$xml = file_get_contents('php://input');

--
Met vriendelijke groeten,
Tim Van Wassenhove <http://www.timvw.info>
Jul 17 '05 #3
On Thu, 16 Dec 2004 16:09:04 -0800, "konsu" <ko***@hotmail.com> wrote:
Hello, would you describe your requirements in more detail? Are you
implementing a web application? A web site in other words? Where does the
xml string come from? from the user? How does the user enter it? how is the
response is presented to the user? is the response put in to HTML?

konstantin

The string is coming via the web. They only gave me the XML layout
with no other details. They said I need to provide a URL and they
would send the data to the url. I need to send back a XML response in
the same thread.

Gary

Jul 17 '05 #4
"Gary Quiring" <gq******@msn.com> wrote in message
news:kl********************************@4ax.com...
I am a newbie to PHP and HTML. I need to recieve an XML string from
an outside source that in turns needs to be parsed to read a record
from a database and then return the answer. I have successfully
installed PHP 5 (Fedora Core 3) and recompiled it for my Informix DB.
I am able to query the DB using SQL commands and it works.

What I don't get (because I am not knowledgable in HTML) is how to
receive this string of data. I bought a book (PHP 5 Bible) and have
been reading about forms. Is the $_POST command what I need to use?
Once I get this XML string in PHP I think I can handle this until I
have to send back the result. I am guessing another $_POST command?

Also how could I simulate sending this request?

Thanks
Gary


Use the method that Tim described. For testing, supply a filename instead of
the PHP stream name.
Jul 17 '05 #5
On Thu, 16 Dec 2004 20:20:58 -0500, "Chung Leong"
<ch***********@hotmail.com> wrote:
"Gary Quiring" <gq******@msn.com> wrote in message
news:kl********************************@4ax.com.. .
I am a newbie to PHP and HTML. I need to recieve an XML string from
an outside source that in turns needs to be parsed to read a record
from a database and then return the answer. I have successfully
installed PHP 5 (Fedora Core 3) and recompiled it for my Informix DB.
I am able to query the DB using SQL commands and it works.

What I don't get (because I am not knowledgable in HTML) is how to
receive this string of data. I bought a book (PHP 5 Bible) and have
been reading about forms. Is the $_POST command what I need to use?
Once I get this XML string in PHP I think I can handle this until I
have to send back the result. I am guessing another $_POST command?

Also how could I simulate sending this request?

Thanks
Gary


Use the method that Tim described. For testing, supply a filename instead of
the PHP stream name.

How do I tell my test program to post the data to the URL that is
going to process the XML file?

Thanks
Gary

Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Sonal | last post by:
Hi I am trying to provide infrastructure for RSS feeds on my Website. I dont intend to build any news aggregators. I just want my website to be enabled for providing RSS Feeds. I am using ASP.NET...
15
by: Brady Love | last post by:
I am currently working an an app that will post and edit blogs on blogger. Right now I have it so I can recive a list of the blogs and the content of those blogs using Atomizer. This is my first...
1
by: John A Grandy | last post by:
I am using StringBuilder to build a string containing xml that is Response.Write() to the browser as an rss feed. To replace invalide xml chars, I am using code fragments such as ...
2
by: Van den Driessche Willy | last post by:
I am writing a HTTP Module to generate an RSS feed for certain requests. For the moment everything is hardcoded and my code looks like (the idea is - for the moment to generate the RSS feed on the...
5
by: sck10 | last post by:
Hello, I am using the following to get RSS Feeds. I've been able to get the xml files from every site except CNN. When I try to get there feed, I get the exception: A column named 'link'...
4
by: glbdev | last post by:
I need to pull items out of an XML feed. Here is an example of the XML file: - <TopNode> - <XmlFeed> - <GetListInCategory> - <Data Count="937"> - <Table> <EventID>567343</EventID>...
4
by: Billy Barth | last post by:
I would like to create a RSS feed from my Access Database. I have an Access table for news which has the article title, date, and story in it. What I would like to do is pull the data from there...
1
by: Nalaka | last post by:
Hi, We are sending SMS messages using our ASDP.net site (C# code).... How do I add a "Line Feed" character to the string that we are sending? Any help is deeply appreciated Thanks Nalaka
4
by: David Thielen | last post by:
Hi; This is for a website that is just html pages, no ASP.NET. I want the default page to be a different page if it's a mobile device. I can do this in ASP.NET by looking at the browser size and...
4
by: jrod11 | last post by:
I have an RSS reader that I have been using, but the only problem i have is that I want the target to be "_blank" rather than the parent window. Anyone know where I should add the _blank? ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.