PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > alt.comp.lang.php > getting data from a feed file
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
getting data from a feed file

Réponse
 
LinkBack Outils de la discussion
Vieux 14/06/2007, 16h01   #1
jerry@mynetserv.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut getting data from a feed file

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>

  Réponse avec citation
Vieux 14/06/2007, 20h09   #2
Gleep
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: getting data from a feed file

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




  Réponse avec citation
Vieux 14/06/2007, 20h28   #3
Gleep
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: getting data from a feed file

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
  Réponse avec citation
Vieux 14/06/2007, 22h48   #4
Armand Brahaj
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: getting data from a feed file

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

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h37.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10223 seconds with 12 queries