Forums | Chat | News | Contact Us | Register |
PSU Social
![]() ![]() ![]() ![]() ![]() ![]() |
![]() |
PSU: No, Your obsession with Planetside will only get worse.
Forums | Chat | News | Contact Us | Register |
PSU Social
![]() ![]() ![]() ![]() ![]() ![]() |
![]() |
Home | Forum | Chat | Wiki | Social | AGN | PS2 Stats |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
![]() |
[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 01:27 PM. |
||
![]() |
|
![]() |
[Ignore Me] #2 | ||
Private
|
Hey,
Using PHP : PHP Code:
|
||
![]() |
|
![]() |
[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 |
|
|