How to manipulate headers
| From: | Alejandro López Hernández | Date: | Mon, 19 Dec 2005 06:48:08 +0000 |
| Subject: | How to manipulate headers | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-22300@lists.php.net to get a copy of this message | ||
Hello guys,
I'm using HTTP_Download in order to send hidden files, it's working fine
as long as I don't send header information before launching the file, is
it possible to launch a donwload after I have sent headers?
This is the code I'm using:
<?php
require_once 'HTTP/Download.php';
$dl = new HTTP_Download(array('file'=>'/home/finatrade/installer.exe',
'contenttype'=>'application/octet-stream',
'contentdisposition'=> HTTP_DOWNLOAD_INLINE)
);
$dl->send();
?>
It works great if I don't sent any other information before it, how can I
manipulate this so that I can launch the file after I have sent something else like
html code.