CURL Function

by 3 replies
4
Hi Friends

I have one doubt about "without using curl function how can i get json data from url" i anyone know means please tell briefly....:confused:

Thanks & Regards
Kiruthika.M
#programming #curl #function
  • CURL allows you emulate some actions of a real person with a real browser like:
    get content, post content, redirect etc.

    - You can do absolutely the same manually into your browser.
    - If your purpose is getting content without doing any actions you might consider the get file (get remote file) methods, they don't use curl.
    • [1] reply
    • You can use the file_get_contents function, but most hosting disable retrieving data using this function from external URLs (other sites).

      You can also use the fopen function, a bit more complex than file_get_contents though.

      However I always prefer cURL for these tasks. You can check this page here for more info,
      http://stackoverflow.com/questions/2...-url-using-php
  • For advanced functionality (i.e. custom setups), you may need a VPS.
    Something similar is why I have one*.

Next Topics on Trending Feed

  • 4

    Hi Friends I have one doubt about "without using curl function how can i get json data from url" i anyone know means please tell briefly....:confused: