I need some help with this script.
What I want is for the script to be located in one directory and the file that's to be downloaded kept in another directory but I can't figure out how to do that.
For example, I want to save the script to the following location: http://members.lycos.co.uk/username/directory1/download.php and I want to save the file to http://members.lycos.co.uk/username/directory2/test.zip
How do I go about doing that? I tried figuring it out myself but that didn't work out so well.
<?php
header ( "Content-type: application/zip" );
header ( "Content-Disposition: attachment; filename=test.zip" );
readfile ( 'test.zip' );
?>