I want to Learn PHP CURL

Discussion in 'PHP' started by myworkspeaks, Dec 24, 2011.

  1. #1
    I want to learn PHP Curl , What is the best resource for it except php.net

    Also I would like to know the advantage of CURL over general PHP we use


    Thanks
     
    myworkspeaks, Dec 24, 2011 IP
  2. kind_of_the_cash

    kind_of_the_cash Active Member

    Messages:
    852
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    85
    #2
    You can use CURL to scrape something from external web pages etc..
     
    kind_of_the_cash, Dec 24, 2011 IP
  3. cogzidel

    cogzidel Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You may Use the W3 school as an best souce, Because me also referred that only when i started
    --------------------
    Jonathanganesh
    Hire a php developer
     
    cogzidel, Dec 24, 2011 IP
  4. amgadhs

    amgadhs Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    amgadhs, Dec 26, 2011 IP
  5. pipsoup

    pipsoup Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The best way is looking for sample code of php cURL. You can find a lot of sameple codes in Google.
     
    pipsoup, Dec 30, 2011 IP
  6. AlexanderZ

    AlexanderZ Member

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    48
    #6
    cURL has no real advantage for basic URL fetching and is actually more complex for simple url fetching. However, it allows you to make complex requests (specify headers, specify ssl certificates, fetch only headers, and much much more). It is also much faster (about twice as fast for what I was using it for) compared to file_get_contents(). As for resources higherpass.com/php/Tutorials/Using-Curl-To-Query-Remote-Servers/ has a basic yet informative tutorial (make sure to read past page one to see the more advanced capabilities i mentioned).
     
    AlexanderZ, Jan 3, 2012 IP
  7. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #7
    OMG no comment........
     
    Last edited: Jan 3, 2012
    MyVodaFone, Jan 3, 2012 IP
  8. AlexanderZ

    AlexanderZ Member

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    48
    #8
    Have you seen any of the other threads on DP? I doubt this is the most useless one (though it can be answered with a simple google search). The reason I answered the question/bumped it is to answer the question of it's advantage over stdlib php functions.
     
    AlexanderZ, Jan 3, 2012 IP