#!/usr/bin/env php | +----------------------------------------------------------------------+ */ if (php_sapi_name() !== "cli") { die ("This tool only run on CLI\n"); } if ($argc < 4) { die ("Usage: php debug.php uri method \"args, args\"\n"); } include "yar_debug.inc"; list($script, $uri, $method, $args) = $argv; $client = new Yar_Debug_Client($uri); $response = $client->call($method, explode(",", $args)); print_r($response); ?>