PHP Classes

File: showimage.php

Recommend this page to a friend!
  Classes of Mark de Leon  >  PHP Document Scanner using SANE or eSCL AirPrint  >  showimage.php  >  Download  
File: showimage.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Document Scanner using SANE or eSCL AirPrint
Web interface to scan printed documents
Author: By
Last change:
Date: 1 year ago
Size: 911 bytes


Class file image Download
include_once 'phppagestart.php';

$ext = strtolower(pathinfo($image, PATHINFO_EXTENSION));
if (
elseif (

header('Content-disposition: inline; filename="'.$image.'"');
header('Content-Transfer-Encoding: binary');
header('Accept-Ranges: bytes');

if ($ext=='jpg')
//header('Content-type: application/jpg');
//$basename = pathinfo($image, PATHINFO_FILENAME);
// $basename= substr($image, 0, -4);
//echo $_SESSION['loggedin'];

For more information send a message to info at phpclasses dot org.