diff options
Diffstat (limited to 'sourcecodes/execute_bn_gom.php')
| -rw-r--r-- | sourcecodes/execute_bn_gom.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sourcecodes/execute_bn_gom.php b/sourcecodes/execute_bn_gom.php index 66a04e01..113841cc 100644 --- a/sourcecodes/execute_bn_gom.php +++ b/sourcecodes/execute_bn_gom.php @@ -5,6 +5,27 @@ require("terminal_commands.php"); $keyval=valid_keyval($_GET["My_key"]); +// Structure learning takes a while (C code + octave) and this page +// used to output NOTHING until it was done -- the browser sat on a +// blank page. Emit the status page FIRST and flush it, so the user +// sees what is happening, with a fallback link in case the automatic +// forward is blocked or fails. +?> +<!doctype html> +<html> +<head> +<title>Running BNW</title> +<link rel="stylesheet" type="text/css" href="my_new_style.css"> +</head> +<body> +<div class="content"> +<p>Structure learning is running.</p> +<p id="bnw-forwarding">Forwarding to the network diagram when done…</p> +<p>If the diagram does not open, <a href="layout_svg_no.php?My_key=<?php print($keyval);?>">click here</a>.</p> +</div> +<?php +flush(); + //////////////execute c codes for local score/////////////////// //$dir="/var/lib/genenet/bnw/"; $dir="/var/lib/genenet/bnw/"; @@ -98,4 +119,6 @@ runTerminalCommand([realpath(__DIR__.'/run_scripts/run_octave'), $keyval]); <script> window.open("layout_svg_no.php?My_key=<?php print($keyval);?>",'_self',false); </script> +</body> +</html> |
