Jump to content

Grabbing a ever changing list of people from a website! Is it possible?


zrweber

Recommended Posts

I've had this concept for something I've been wanting to do for awhile, but I need to know if it's even possible in PHP. I've been seriously playing with PHP for a few months now and here's what I was wanting to do.

 

On this website there is a list of players currently online

http://www.tibia.com/community/?subtopic=worlds&world=Solera

Is there anyway I could grab those list of players and store their names into a .txt file?

 

This is just for fun. My actual goal is to create something that's grabbing that list of players every 5 minutes and showing me who has logged off and who has logged on.

anything is possible really  :P, but first off i would ask the site if they have an API you can plug into or some kind of xml feed?

alternatively you will want to fetch the page, and parse it appropriately to get the data you need with get_file_contents()

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.