Realm data feeds
Realm data feeds
Please post all your questions and feedback on the <a href='http://www.warcraftrealms.com/dataexport.php'>Realm Data Export</a> feature in this thread.
phpbb:phpinfo()
It's freaking hard to use! Is there a tutoriol to help? There is no clear way to use this, at all and I really want to display it on my web site for my guild.
<a href="http://www.the-valiant.com/InuTracy/Pic ... e.jpg">Hl2 > H2? Decide yourself</a>
Easy
I found it extremely easy to use
I mean it doesnt get much easier when you are given a comma separated csv file, updated every hour.
This shit rocks, thank you Rollie & Co.
I mean it doesnt get much easier when you are given a comma separated csv file, updated every hour.
This shit rocks, thank you Rollie & Co.
This feature seems interesting. I was looking something similar, like having the realm status (online/offline) that could be viewed from my site, something like a few fansites have.
Anyways, it would be interesting to use the data, but a guide or tutorial would rock I'm more into design than programming
Anyways, it would be interesting to use the data, but a guide or tutorial would rock I'm more into design than programming
The realm data feeds I provide give basic realm statistical information, not if the realm is currently up or not.
The realm data can be retrieved in the same manner as posted in the guild export thread. You would just need to point the save file at the realm data files instead of the guild files.
The realm data can be retrieved in the same manner as posted in the guild export thread. You would just need to point the save file at the realm data files instead of the guild files.
phpbb:phpinfo()
I have read the terms of use, but Guild data processing is still unclear. Can I use the the link like a file? Is it allowed to use it like this (in PHP):
$data_array = file("http://www.warcraftrealms.com/exports/g ... comes_here"); ?
$data_array = file("http://www.warcraftrealms.com/exports/g ... comes_here"); ?
Finally the code is done, so my Guild data processor is working! As agreed it gets the data once a day from warcraftrealms.com, it makes a copy of it then uses the stored one till the next refresh time comes (after 24 hours). Here it is (without the HTML code):
That's it. Not too much but it works : ))
Code: Select all
$now = time();
//Setting up the variables
$date_file_name = "some_datefile_name.temp";
$date_file = file("$date_file_name");
$next_day = $date_file[0] + 24*3600;
$link = "http://www.warcraftrealms.com/exports/guildexport.php?guildid=guild_id";
$filename = "some_file_name.dat";
$title = "Guild_name";
if($now > $next_day)
{
$file = $filename;
$d_file = file("$link");
$open_file = fopen($file, "w");
for($i = 0;$i < count($d_file);$i++)
{
fwrite($open_file, "$d_file[$i]");
}
fclose($open_file);
//Updating the stored date
$open_file = fopen("$date_file_name", "w");
fwrite($open_file, "$now");
fclose($open_file);
}else{
$d_file = file("$filename");
}
...Some html code...
//Printing out the member data
for($i = 1;$i < count($d_file);$i++)
{
$line = explode(",", $d_file[$i]);
list($month, $day, $year) = explode("/", $line[4]);
echo "the data in the format you like ($line[0..5])";
}
//The first line contains no member data
$member_count = count($d_file) - 1;
echo "member count with the format you like";
...Some html code...
To test this, try this:
I have no trouble opening the guild files, but server files are down
Code: Select all
gzopen('http://www.warcraftrealms.com/exports/download.php?fname=EU-Emerald%20Dream.csv.gz','r')