RE: [PHP-WINDOWS] "download script"
| From: | Richard Heyes | Date: | Sun, 11 Jun 2000 12:58:43 +0000 |
| Subject: | RE: [PHP-WINDOWS] "download script" | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-393@lists.php.net to get a copy of this message | ||
> i want to write a phpscript for filelinks:
>
> download.php?fileID
>
> the script should "redirect" to the corresponding file...
> but how to do that ?
>
> the fileIDs and the corresponding URL's are stored in a database..
> and i don't know what to do after i read the URL from the database..
>
> i hope you understand my problem :)
header('Location: '.$filename);
Or (for example):
header('Location: /path/to/your/file.exe');
Path can also be relative, or a full url. Must be retreiveable by http
though.
--
Richard Heyes
http://www.heyes-computing.net/scripts/