Tuesday, 13 April 2010

Difference between CURL and FILE_GET_CONTENT?

PHP offers two main options to get a remote file, curl and file_get_contents.
There are many difference between the two.
Curl is a much faster alternative to file_get_contents.

Cheers!

9 comments:

  1. File_get_contents
    -----------------
    1. It is a function to get the contents of a file
    2. We can only able to get data using GET method

    CURL
    -----
    1. It is a library.curl supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading HTTP form based upload, proxies, cookies.
    2. We can able to use GET, POST, PUT and DELETE.
    3. we can set the authentication using HTTPHEADER
    4. we can set the IP address to the input

    ReplyDelete
  2. I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post.is article.
    python Training institute in Pune
    python Training institute in Chennai
    python Training institute in Bangalore

    ReplyDelete
  3. I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing.. Believe me I did wrote an post about tutorials for beginners with reference of your blog. 
    Data Science Training in Chennai
    Data Science training in kalyan nagar
    Data science training in Bangalore
    Data Science training in marathahalli
    Data Science interview questions and answers
    Data science training in jaya nagar

    ReplyDelete