SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Download Files

  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2005
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Red face Download Files

    Hello All,

    I am looking for a sample PHP script that would enable one download files from my site. I want prospective clients to be able to down demos of my softwares from my site.

    Cheers.

  2. #2
    SitePoint Guru
    Join Date
    Sep 2004
    Location
    NY, USA
    Posts
    712
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just a simple link to the file would make it available for download to your visitor.

    For a group of files you'd probably want to package them in a .zip

    Or is there more to the story?

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2005
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey cringer,

    Thanks for the insight.

    I would appreciate it if you could show me a link script.

  4. #4
    SitePoint Guru
    Join Date
    Sep 2004
    Location
    NY, USA
    Posts
    712
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, well I was just talking about HTML, not a script really.

    Code:
    <a href="somefile.zip">click here to download the zip file</a>
    where somefile.zip is the name of the file to be downloaded.

  5. #5
    SitePoint Enthusiast
    Join Date
    Jan 2005
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello cringer,

    Thanks.

    Never thought one could do it using that the <a href> tag and attrib.

    Cheers.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •