#!/usr/bin/php -q
<?php
include ("/var/www/html/project1/phpagi-2.20/phpagi.php");
$agi = new AGI();
$agi->answer();
$info = shell_exec("curl https://ipinfo.io/json");
$info=json_decode($info,true);
foreach($info as $key=>$value){
$agi->set_variable($key,$value);
$agi->verbose("--$key-----------$value-----");
}
?>