php wrapper for viewing output files