PHP Curl help

Discussion in 'PHP' started by webhostguy, Jun 24, 2009.

  1. #1
    I m looking to code a script that logins in to a site and then downloads the files from it directly to my server. I know it involves curl function which I m not to fimilar with. Please let me know what I can do to be pointed in the right direction. Thanks.
     
    webhostguy, Jun 24, 2009 IP
  2. Silver89

    Silver89 Notable Member

    Messages:
    2,243
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    205
    #2
    What's the site?
    Do you have the login details?
    and how many files?
     
    Silver89, Jun 28, 2009 IP
  3. HivelocityDD

    HivelocityDD Peon

    Messages:
    179
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You have to first make sure CURL is enabled in your server. Then in PHP
    you will have to initialize the curl then set the url and post data . Then define the method POST/GET , set return transfer = true. Then execute it and echo the returing output. Thats it
     
    HivelocityDD, Jun 28, 2009 IP
  4. Aces A

    Aces A Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Aces A, Jun 29, 2009 IP