Page 1 of 1

Parsing stuff from remote website

Posted: Thu Aug 17, 2006 2:51 pm
by Amezis
Hello.

I'm making this tool which needs some remote info from a HTML site. But this info is "hidden" between sentences/words. An example is a site showing "The day is now day here.", and then I need to parse "day here" into a variable in PHP.

So how can I do that? Thanks in advance. :)

Posted: Thu Aug 17, 2006 3:15 pm
by feyd
Regular expressions are the usual way.

I hope you have their permission to pull data from their pages.

Posted: Thu Aug 17, 2006 3:26 pm
by Amezis
Regular expressions?

fopen?

EDIT: And yes, we have.

Posted: Thu Aug 17, 2006 3:29 pm
by Oren
Amezis wrote:Regular expressions?

fopen?
No. Regular expressions: http://us2.php.net/manual/en/ref.pcre.php