Menu
I got the code from the link:
[url]http://www.webdeveloper.com/forum/showthread.php?t=165252
in my php file (download.php), I add code:
<?php
header(“Content-type: application/zip”);
include “/path/to/file/myfile.zip”;
echo file_get_contents(“/path/to/file/myfile.zip”);
exit;
?>
but when I visit the php file, I download the php file itself (download.php) rather than the zip file “/path/to/file/myfile.zip” indicated in code.
My purpose is to hide the link “/path/to/file/myfile.zip” from user.
Could you find code errors and help me to complete my target?
thanks