Snappy PHP
This is a PHP page
Go to HTML page
PHP GLOBALS from script
Show PHP GLOBALS through PHP websocket
Output from ".__FILE__.":";
echo print_r($GLOBALS,true)."";
echo "__FILE__: ",__FILE__;
break;
case 'WS': // Aks the websocket server to show its globals
$sp=websocket_open('127.0.0.1:8080/ws_request.php?param=php_test',$errstr);
if(!$sp) trigger_error($errstr);
// Send command and wait for an answer synchronously
websocket_write($sp,json_encode(["php"=>"websocket"]));
echo "
";
?>