getting data of other sites

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bugthefixer
Forum Contributor
Posts: 118
Joined: Mon Mar 22, 2004 2:35 am

getting data of other sites

Post by bugthefixer »

how can i get the data from other sites like news,horoscopes,weather extra and display it on my site
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

1 get their permission, unless they provide an RSS feed. If they don't have an RSS feed, then you can extract the information you want out of the page contents returned from [php_man]file_get_contents[/php_man]() or [php_man]curl[/php_man], and some regular expressions.
Post Reply