Skip to content

Instantly share code, notes, and snippets.

@halka
Created May 2, 2009 07:45
Show Gist options
  • Save halka/105459 to your computer and use it in GitHub Desktop.
Save halka/105459 to your computer and use it in GitHub Desktop.
Vatsimのstatusをserverからgetしてjsonで返します。
<?php
/*
you can get vatsim's online status.
httprequest from another script.
data format : http://www.bbflights.com/VatsimPHP/manual.php
using Vatsimphp by Brian Beach http://www.bbflights.com/VatsimPHP/
*/
require_once 'VatsimPHPgenerator.php';
$vsg=& new VatsimPHP;
$online=$vsg->clients();
$json=json_encode($online);
echo $json;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment