Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Download a file

  1. #1
    Lop's Avatar
    Lop
    Lop is offline Speaks fluent binary
    Join Date
    May 2006
    Posts
    1,178
    Rep Power
    30

    Download a file

    I've search google and can not find an answer. I would like to download a file such as an image and save it to a directory???

    How??

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    sn17 Guest
    If u are asking about the regular downloadind, then all u have to do is to right click and click on "Save Target As".

  4. #3
    Blaze's Avatar
    Blaze is offline Programmer
    Join Date
    Jun 2006
    Posts
    117
    Rep Power
    0
    I think he is asking how to download a file using PHP. I think you can just connect to the URL of the file and it will download. Not sure though.

  5. #4
    Lop's Avatar
    Lop
    Lop is offline Speaks fluent binary
    Join Date
    May 2006
    Posts
    1,178
    Rep Power
    30
    Yea, I'm wondering how to connect to a URL that is a file and actually save it on the server.

  6. #5
    Sionofdarkness is offline Programming Expert
    Join Date
    Jul 2006
    Posts
    383
    Rep Power
    0
    I'm as clueless as you. Well, 100x more clueless, actually. I didn't mean to equate us.

  7. #6
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20
    i would think CURL would do the trick, but i dont know for sure. have you looked into that?

  8. #7
    Void's Avatar
    Void is offline Programming Expert
    Join Date
    Jun 2006
    Posts
    410
    Rep Power
    23
    CURL should do the trick. You can also get other software that does this and just look at their code. I know a lot of PHP does this type of thing already for updates and such.
    Void

  9. #8
    Chan is offline Programming Professional
    Join Date
    Jun 2006
    Posts
    205
    Rep Power
    0
    How large of a file can you download using CURL? This seems like a neat function.

  10. #9
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20
    Quote Originally Posted by Chan View Post
    How large of a file can you download using CURL? This seems like a neat function.
    as large of a file as you want...curl is basically the equivilant of a text based browser

  11. #10
    Lop's Avatar
    Lop
    Lop is offline Speaks fluent binary
    Join Date
    May 2006
    Posts
    1,178
    Rep Power
    30
    Ok, so I've got this working now and I'd like to add a progress bar. Is there any way to do this?

Closed Thread
Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. HTTP Getting Browser To Open File And Not Download File
    By RhetoricalRuvim in forum General Programming
    Replies: 6
    Last Post: 08-05-2011, 12:14 AM
  2. PHP Download File Stream
    By chinz85 in forum PHP Development
    Replies: 1
    Last Post: 06-04-2010, 02:07 AM
  3. unable to download file from php
    By vsr in forum PHP Development
    Replies: 6
    Last Post: 02-09-2010, 03:00 AM
  4. File download is corrupted
    By jaguar in forum PHP Development
    Replies: 3
    Last Post: 05-04-2008, 03:54 AM
  5. Easy way to download a file
    By Saint in forum Managed C++
    Replies: 5
    Last Post: 09-11-2006, 12:13 PM

Tags for this Thread

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