#!/usr/bin/env php "; // Display some debugging info foreach(get_defined_vars() as $key => $value){ if(substr($key,0,1) == "_" || in_array($key,["argv","argc"])) continue; echo "Variable Name: " . $key . " = " . get_class($value) . $_EOL; } echo $_EOL . "Host: " . $REQUEST->getHostAddress() . $_EOL; echo $_EOL . "Parameter: " . $REQUEST->getParams("GET","query") . $_EOL; if(defined('STDIN') && !empty($argv)){ echo $_EOL . "CLI: " . $_EOL; $CLI->run(); } echo $_EOL . "End of Script" . $_EOL;