I want visitors to be able to download zip files without revealing their location (different server). I thought this short piece of code, saved as dload.php on my main server should work but I'm getting the zipfile as text output¿
<?php
$url = "http://alternate.server.com/";
$file = "thisfile.zip";
Header("Content-Type: application/x-zip-compressed");
Header("Content-Disposition: ; Filename=$file");
readfile($url.$file);
?>
Any suggestions?
Tia