IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 16, 2018, 2:40:02 PM (8 years ago)
Author:
eugene
Message:

define additional debugging output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/raw/skyplot.php

    r28601 r40437  
    1212$MISSING = "missing.png";
    1313
    14 ### we must have been past arguments with GET:
     14### XXX TEST
     15# $outfile = $MISSING;
     16# $file = fopen ($outfile, "r");
     17# if ($file && !$debug) {
     18#   header ('Content-Type: image/png');
     19#   fpassthru ($file);
     20# }
     21# exit();
     22
     23
     24### we must have been passed arguments with GET:
    1525if ($_SERVER[REQUEST_METHOD] != 'GET') {
    1626  exit ();
     
    4757$outfile = $_GET[output];
    4858
    49 $output = shell_exec("skyplot.dvo $infile $outfile");//, $output, $status);
     59// $output = shell_exec("skyplot.dvo $infile $outfile");//, $output, $status);
     60exec("skyplot.dvo $infile $outfile", $output, $status);
    5061
    5162if ($debug) {
     63  echo "output from skyplot.dvo<br>\n";
    5264  for ($i = 0; $i < count($output); $i++) {
    5365    echo "output $i: $output[$i]<br>";
     
    5769}
    5870
    59 # use these to check the environment
    60 # passthru ("env");
     71// use these to check the environment
     72// passthru ("env");
     73
    6174
    6275$file = fopen ($outfile, "r");
Note: See TracChangeset for help on using the changeset viewer.