IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13281


Ignore:
Timestamp:
May 4, 2007, 5:29:18 PM (19 years ago)
Author:
eugene
Message:

added debug mode

File:
1 edited

Legend:

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

    r13264 r13281  
    11<?php
     2
     3$debug = 0;
    24
    35### these need to be set to the correct locations!!
     
    5658}
    5759
    58 if (0) {
     60if ($debug) {
    5961  echo "basename: $basename<br>";
     62  for ($i = 0; $i < count($output); $i++) {
     63    echo "output $i: $output[$i]<br>";
     64  }
    6065  echo "output:   $output[0]<br>";
    6166  echo "status:   $status<br>";
     
    6570
    6671$file = fopen ($filename, "r");
    67 if ($file) {
     72if ($file && !$debug) {
    6873  # do I need to use image/jpg? can I modify this to image/png, etc, based on the type?
    6974  header ('Content-Type: image/jpg');
Note: See TracChangeset for help on using the changeset viewer.