Re: Parsing remote sites
| From: | Web Master | Date: | Thu, 07 Sep 2000 18:14:14 +0000 |
| Subject: | Re: Parsing remote sites | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-15764@lists.php.net to get a copy of this message | ||
There are couple of ways you can do it.
1) the best way is to build a data dictionary and respective actions.
2) hard code the conditions in the program it self.
If you need any more help on this let me know.
-Unni
http://www.unni.com
http://www.malayalamovies.com
http://www.kavil.com
Robert Abbate wrote:
> Hi. I have been able to fetch content from other sites (using a PHP script
> called "Snoopy"), and print it, but I want to be able to recognize certain
> words and don't really know where to begin.
>
> For example: Let's say the site I fetch has:
>
> "Name: John
> Address: 456 Main Street"
>
> Is there a way to get PHP to recognize certain words (like: "Address" in
> this case) and be able to plug in the result (in this case: 456 Main
> Street)??
>
> Any help would be appreciated. I really don't know where to begin on this
> one.
>
> Thanks!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net