Here's a fun one for you guys,
So, I'm working on some cPanel enhancements, and part of one is doing a file download.
The simplest solution is to be able to pipe the download through the php code... something like:
However, I am running into a minor issue:
at the bottom of every cpanel generated page, cPanel automatically adds:
Is there any way to disable/get around this tag being added? I'd prefer to not have to place the download script in /usr/local/apache/htdocs/ just to get around it.
It seems to be added after the script is finished running, as I don't see any auto_append's set in php's config.
So, I'm working on some cPanel enhancements, and part of one is doing a file download.
The simplest solution is to be able to pipe the download through the php code... something like:
Code:
header('content-transfer-encoding: binary');
header('content-disposition: inline; filename="file.tar.gz"');
header('content-type: application/x-tar');
echo file_get_contents($f);
at the bottom of every cpanel generated page, cPanel automatically adds:
Code:
<!-- cPanel [<<VERSION>>] Copyright (c) 1997-2008 cPanel, Inc. Licensed on <<HOST>> -->
It seems to be added after the script is finished running, as I don't see any auto_append's set in php's config.