Source for file fileoutput.php

Documentation is available at fileoutput.php

  1. <?php
  2. /**
  3. * Output a file to the browser
  4. *
  5. @author    Stuart Prescott
  6. @copyright  Copyright Stuart Prescott
  7. @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  8. @version    $Id$
  9. @package    Bumblebee
  10. @subpackage Installer
  11. */
  12.  
  13. /**
  14. * Dump the generated file to the user to save and upload to the server
  15. */
  16. function outputTextFile($filename$stream{
  17.   // Output a text file
  18.   header("Content-type: text/plain")
  19.   header("Content-Dispositionattachmentfilename=$filename");
  20.   echo $stream;
  21. }
  22.  
  23. ?>

Documentation generated on Tue, 06 Mar 2007 10:01:32 +0000 by phpDocumentor 1.3.0