|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Ok, I have a feed that I need to get the data from. The file is an
html file that contains items. I need to step through the file, getting the first item, doing whatever, then the second item, and so on. Any thoughts on the best way to to this? <Feed> <Item> <ID>Data I need</ID> <Title>Data I need</Title> </Item> <Item> <ID>Data I need</ID> <Title>Data I need</Title> </Item> </Feed> |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On Thu, 14 Jun 2007 08:01:19 -0700, jerry@mynetserv.com wrote:
>Ok, I have a feed that I need to get the data from. The file is an >html file that contains items. I need to step through the file, >getting the first item, doing whatever, then the second item, and so >on. Any thoughts on the best way to to this? > ><Feed> > <Item> > <ID>Data I need</ID> > <Title>Data I need</Title> > </Item> > <Item> > <ID>Data I need</ID> > <Title>Data I need</Title> > </Item> ></Feed> look into http://sourceforge.net/projects/snoopy/ or data mining google: php data mining or google: html data scraping the idea is you grab the data from a web site trim out the top/bottom parts so you are left with what you need then parse through the remaning using tag identifiers and pass into an array then use that array as needed |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On Thu, 14 Jun 2007 08:01:19 -0700, jerry@mynetserv.com wrote:
>Ok, I have a feed that I need to get the data from. The file is an >html file that contains items. I need to step through the file, >getting the first item, doing whatever, then the second item, and so >on. Any thoughts on the best way to to this? > ><Feed> > <Item> > <ID>Data I need</ID> > <Title>Data I need</Title> > </Item> > <Item> > <ID>Data I need</ID> > <Title>Data I need</Title> > </Item> ></Feed> this is cool http://www.netprofess.com/articles/s...s_curl_php.pdf |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
jerry@mynetserv.com wrote:
> Ok, I have a feed that I need to get the data from. The file is an > html file that contains items. I need to step through the file, > getting the first item, doing whatever, then the second item, and so > on. Any thoughts on the best way to to this? > > <Feed> > <Item> > <ID>Data I need</ID> > <Title>Data I need</Title> > </Item> > <Item> > <ID>Data I need</ID> > <Title>Data I need</Title> > </Item> > </Feed> > Are you trying to parse an XML File? http://www.php.net/manual/en/ref.xml.php |
|
![]() |
| Outils de la discussion | |
|
|