Hello, I have this code so I can use it for downloading files
<?php
switch($download)
{
case '1':
include('./resources/backdrops/1.zip');
break;
default:
include('./blank.html');
break;
}
?>
But when i try index.php?download=1, it shows a bundent of words. Is this possible without using those browser heading stuff?
Including with zip files?
Moderator: General Moderators
Including with zip files?
Last edited by Pocketx on Sun Feb 23, 2003 2:53 pm, edited 1 time in total.
you can try using javascript
Code: Select all
<?php
print <<<EOT
<script type="text/javascript" language="JavaScript">
function redirect() {
window.location.replace("http://www.domain.com/file.zip");
}
setTimeout("redirect();", 2000);
</script>
EOT;
?>