Reading data from other pages

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
runestomymemory
Forum Newbie
Posts: 1
Joined: Sat Oct 25, 2008 10:00 pm

Reading data from other pages

Post by runestomymemory »

I'm a complete noob at PHP, however I desperately need to write a simple script that reads the last login date and name from a MySpace profile and outputs it on a blank page, and repeats this around 20 times on different profiles to create a rough list of when certain people logged in (for a study on the habits of certain people). What would be needed to do this? Visiting each profile is time-consuming, and a big frame-filled page is retarded.
User avatar
novice4eva
Forum Contributor
Posts: 327
Joined: Thu Mar 29, 2007 3:48 am
Location: Nepal

Re: Reading data from other pages

Post by novice4eva »

I suggest you look into CURL. CURL will allow you to login to the site and fetch the output from it, and then i think you will need another tricky regex to capture the date and name.
Post Reply