PHP Developers Network
http://forums.devnetwork.net/

Need a simple stats grabber coded please
http://forums.devnetwork.net/viewtopic.php?f=26&t=131198
Page 1 of 1

Author:  Dynamite [ Sat Aug 20, 2011 7:25 am ]
Post subject:  Need a simple stats grabber coded please

Hi there guys,
I need a script that will:

Go to: http://stats.villavu.com/api/user/$USERID (The person will go to: http://mywebsite.com/$USERID)
(Example: http://stats.villavu.com/api/user/2)

Then on the page will have a drop down box to choose a maximum of 8 of the variables (eg. Total Levels Gained)

3 Default Variables are:
Rank, User and Time.

Then all of this information must be displayed on a PHP image.
The background: http://i.imgur.com/tAnl8.png


Thank you.

Author:  Christopher [ Sat Aug 20, 2011 12:37 pm ]
Post subject:  Re: Need a simple stats grabber coded please

Use the cURL library to fetch the data from that site. Use the JSON library to convert the data into a PHP variable. Generate the <select> from the data. See the docs for details.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/