For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > June 2005 > How to create download ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to create download ?
galsaba

2005-06-10, 3:56 pm

I upload a file to my website.
the name of the file is me.zip.
What command I need to write as html to have the user to download it?
2. If I uploaded the file me.zip in my website: www.gal.com/files
how the user can download this file?

thanks,

galsaba

Craft

2005-06-10, 8:55 pm

In html you have to put
<a href="http://www.gal.com/files/me.zip">Download Here</a>

For it to open in a new window use
<a target="_blank" href="http://www.gal.com/files/me.zip">Download
Here</a>

For more information go to
http://www.w3schools.com/html/default.asp

galsaba wrote:
> I upload a file to my website.
> the name of the file is me.zip.
> What command I need to write as html to have the user to download it?
> 2. If I uploaded the file me.zip in my website: www.gal.com/files
> how the user can download this file?
>
> thanks,
>
> galsaba


bissatch@yahoo.co.uk

2005-06-10, 8:55 pm

How does one go about having the user automatically prompted for
download? Do you need to put something in the page header? Cheers

Burnsy

Daniel Tryba

2005-06-10, 8:55 pm

bissatch@yahoo.co.uk wrote:
> How does one go about having the user automatically prompted for
> download? Do you need to put something in the page header? Cheers


All browsers I ever used have such functionality _IF_ the user wants it.
Most of the times it's "hidden" under the right mouse button, so just
tell them about it if you think that the default behavior for such a
link isn't what the user wants (most of the time the behavior you want
to force here really pisses me of).

John Dunlop

2005-06-10, 8:55 pm

Craft wrote:

> In html you have to put
> <a href="http://www.gal.com/files/me.zip">Download Here</a>


Ok, and instead of 'Click Here' you've put 'Download Here', a
nice finishing touch if I may say so.

> For it to open in a new window use
> <a target="_blank" href="http://www.gal.com/files/me.zip">Download
> Here</a>


What does your browser do if you follow a link like that?

> For more information go to
> http://www.w3schools.com/html/default.asp


I see their tutorials come highly recommended, being
recommended reading at over 100 universities!! I bet they're
real proud - it's not everybody can say *that*.

Are you one of their certified HTML Developers?

--
Jock
John Dunlop

2005-06-10, 8:55 pm

Somebody wrote:

> How does one go about having the user automatically prompted for
> download? Do you need to put something in the page header?


What does your browser do if you follow a link to a zip file?

Anyhow, there's always the Content-Despot header, if that's of
any use to you.

--
Jock
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com