Forums | Chat | News | Contact Us | Register | PSU Social |
PSU: More explosions than a Michael Bay movie.
Forums | Chat | News | Contact Us | Register | PSU Social |
Home | Forum | Chat | Wiki | Social | AGN | PS2 Stats |
|
|
|
Thread Tools | Search this Thread | Display Modes |
2014-04-09, 12:02 PM | [Ignore Me] #1 | ||
Private
|
Hello everybody!
I am making a spanish planetside 2 fansite and i would love to have the "Planetside 2 server status" tool, just like it is displayed at planetside2.eu or https://forums.station.sony.com/ps2/index.php but i have zero knowledge about JSON. It would be possible to do this without having any idea of this program language? What steps should i follow? Sorry for my english! Last edited by elde; 2014-04-09 at 02:27 PM. |
||
|
2014-08-13, 11:51 AM | [Ignore Me] #2 | ||
Private
|
Hey,
Using PHP : PHP Code:
|
||
|
2014-08-13, 11:53 AM | [Ignore Me] #3 | ||
Private
|
Hey,
Using PHP : Code:
<?php //Just change world_id value - 10 is Miller $json = file_get_contents("http://census.soe.com/get/ps2/world/?world_id=10"); $status = json_decode($json, true); foreach($status[world_list] as $a => $b) { if($b[world_id] == 10) { echo "Server ".$b[name][fr]." ".$b[state]." ! "; } } ?> |
||
|
|
Bookmarks |
Tags |
json, status server |
|
|