For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > December 2005 > How to manipulate headers









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to manipulate headers
Alejandro López Hernández

2005-12-19, 3:57 am

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.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com