I want to download picture in my website

Discussion in 'PHP' started by great_friend, Apr 17, 2008.

  1. #1
    Hello Friends,

    i am a new php developer
    i want to download picture in my website
    for example this is url : http://www.example.com/pictures/sample_pic.jpg
    when i clicked on this url then pic is open but i dont want to open any pic
    i want to download pics
    so please help me and advise me that how is it possible ?
    i am waiting for your reply
    Thanks
     
    great_friend, Apr 17, 2008 IP
  2. evilgreenmonkey

    evilgreenmonkey Peon

    Messages:
    26
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    evilgreenmonkey, Apr 18, 2008 IP
    phpl33t and Cbrooker like this.
  3. Trusted Writer

    Trusted Writer Banned

    Messages:
    1,370
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    160
    #3
    You would like to read these articles to learn how to force a file to be downloaded rather than played or displayed:

    boutell.com/newfaq/creating/forcedownload.html

    elouai.com/force-download.php


    Sorry about my inability to post live links yet [​IMG]
     
    Trusted Writer, Apr 18, 2008 IP
  4. great_friend

    great_friend Active Member

    Messages:
    377
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #4
    ok friends,
    thank you very much
    i am very thankful to both people
     
    great_friend, Apr 18, 2008 IP
  5. Trusted Writer

    Trusted Writer Banned

    Messages:
    1,370
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    160
    #5
    No problem[​IMG]

    From my personal point of view DP was created with an idea in mind: having members helping each other and sharing expertise [​IMG]
     
    Trusted Writer, Apr 19, 2008 IP