<html> <head> <title> disp </title> </hed> <body bgcolor=#ffffff> <? $DIR="/usr/local/www/data/ag"; $FLAGON="$DIR/SET/OnDuty"; $FLAGOFF="$DIR/SET/Holiday"; if(file_exists($FLAGON)) { print("<img src=on-air.gif>"); } else { print("<img src=off-air.gif>"); } ?> <br> <? $fp = fopen('/usr/local/www/data/ag/SET/midifile', 'r'); $line = fgets($fp); fclose($fp); print("$line"); ?> </body> </html>