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!

5 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
  4. I appreciate your efforts because it conveys the message of what you are trying to say. It's a great skill to make even the person who doesn't know about the subject could able to understand the subject . Your blogs are understandable and also elaborately described. I hope to read more and more interesting articles from your blog. All the best.
    Best Devops Training in pune
    Devops Training in Bangalore
    Microsoft azure training in Bangalore
    Power bi training in Chennai

    ReplyDelete