Jump to content

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


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()

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.