Re: giving up on file download ......
| From: | toby z | Date: | Sat, 20 Jul 2002 11:54:16 +0000 |
| Subject: | Re: giving up on file download ...... | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-14858@lists.php.net to get a copy of this message | ||
sorry the code is from faqts.com :$
hi guys
>
> as usual my code aint seem to be working
> i want to let my user download files from server
>
> i have a link in my file which takes me to dnld.php
> file which has this code i grabbed fron zend.com
>
>
> header("Content-type: application/octet-stream");
> header("Content-Disposition: attachment;
> filename=$fname");
> if (!readfile($fname))
>
> now what goes on is .... when i click the link if
> offers me to open or save the file
> no matter what option i choose i get an empty note
> pad
> file opened with the name dnld[1].php
> and not the filename im trying to pass thru to be
> opened :S ....
>
>
> please pardon my ignorence as i have no clue to
> whats
> goin on here
>
> will someone please help
> im lost here .....
>
> thnx a million
>
> toby .....
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com