PHP Classes

File: example_download.php

Recommend this page to a friend!
  Classes of Ignatius Teo   MS-Excel Stream Handler   example_download.php   Download  
File: example_download.php
Role: Example script
Content type: text/plain
Description: Example download script
Class: MS-Excel Stream Handler
Stream wrapper to read and write MS Excel files
Author: By
Last change: Missing $export_file
Date: 18 years ago
Size: 734 bytes


Class file image Download
 * MS-Excel stream handler
 * Excel download example
 * @author Ignatius Teo <>
 * @copyright (C)2004 <>
 * @date 21 Oct 2004
require_once "excel.php";
$export_file = "xlsfile://tmp/example.xls";
header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header ("Last-Modified: " . gmdate("D,d M YH:i:s") . " GMT");
header ("Cache-Control: no-cache, must-revalidate");
header ("Pragma: no-cache");
header ("Content-type: application/x-msexcel");
header ("Content-Disposition: attachment; filename=\"" . basename($export_file) . "\"" );
header ("Content-Description: PHP/INTERBASE Generated Data" );