about download files with php

Discussion in 'PHP' started by menake, Dec 1, 2008.

  1. #1
    i want to know how to make a link to a file(like .zip) when click on the link but the file doesn't start download, but after some seconds download start automatically.Is there a special php script anyone can give it to me and describe how to do that.
     
    menake, Dec 1, 2008 IP
  2. misbah

    misbah Active Member

    Messages:
    265
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    68
    #2
    create 1 file for download link (ex. download.html) and put meta refresh on download.html so... this file can refresh to your file (downloading file).
    after that you can put your link to download.html (<a href="download.html">click to download</a>)
     
    misbah, Dec 1, 2008 IP