Reading websites contents source

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
bogha
Forum Newbie
Posts: 8
Joined: Tue Aug 05, 2008 2:06 am

Reading websites contents source

Post by bogha »

Hi,

i just want to know how do you guys use php to read the contents of a page
i mean
assume we have page news.php

how to use php to access this page on the server, execute it, and then read the html tags of the result page and get the required information.

do you have any technique.

thank you.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Reading websites contents source

Post by requinix »

For starters, file_get_contents. After that it depends on what you're getting.
Post Reply