Planetside 2 Status Server - PlanetSide Universe
PSU Social Facebook Twitter Twitter YouTube Steam TwitchTV
PlanetSide Universe
PSU: i have a KNIFE !?!?!?!?!?
Home Forum Chat Wiki Social AGN PS2 Stats
Notices
Go Back   PlanetSide Universe > PlanetSide Discussions > PlanetSide 2 API Discussion

 
 
Thread Tools Search this Thread Display Modes
Old 2014-04-09, 12:02 PM   [Ignore Me] #1
elde
Private
 
Planetside 2 Server status


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.
elde is offline  
Old 2014-08-13, 11:51 AM   [Ignore Me] #2
zyzko
Private
 
Re: Planetside 2 Status Server


Hey,

Using PHP :

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($jsontrue); 
foreach(
$status***91;world_list***93; as $a => $b

      if(
$b***91;world_id***93; == 10
      { 
      echo 
"Server ".$b***91;name***93;***91;fr***93;." ".$b***91;state***93;." ! "
      } 
}
?>
zyzko is offline  
Old 2014-08-13, 11:53 AM   [Ignore Me] #3
zyzko
Private
 
Re: Planetside 2 Status Server


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]." ! "; 
      } 
}
?>
zyzko is offline  
 
  PlanetSide Universe > PlanetSide Discussions > PlanetSide 2 API Discussion

Bookmarks

Tags
json, status server

Discord


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:25 PM.

Content © 2002-2013, PlanetSide-Universe.com, All rights reserved.
PlanetSide and the SOE logo are registered trademarks of Sony Online Entertainment Inc. © 2004 Sony Online Entertainment Inc. All rights reserved.
All other trademarks or tradenames are properties of their respective owners.
Powered by vBulletin
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.