RE: [PHP] File downloading?
| From: | Jason Murray | Date: | Tue, 27 Feb 2001 23:12:00 +0000 |
| Subject: | RE: [PHP] File downloading? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-41884@lists.php.net to get a copy of this message | ||
> Is it possible to send a file to a browser?
Sure.
file();
> I would like to allow people to download a file, but I don't
> want to give away the path to the file, so a normal link
> wouldn't work.
In that case:
Header("Content-type: application/octet-stream");
file("whatyouwanttosend");
> ( I am not sure if my first email went through, I got an
> error back about the mailbox being full)
I didn't see it ...
Jason
--
Jason Murray
jasonm@melbourneit.com.au
Web Design Team, Melbourne IT
Fetch the comfy chair!