Библиотека Curl для CodeIgniter
14 апреля 2008
Обёртка над curl для CodeIgniter.
Пример кода:
$keyword = 'travel'; $this->load->library('curl'); $this->curl->open(); $content = $this->curl->http_get("http://www.google.com/search?q=$keyword"); $this->curl->close(); echo $content;
Комментарии RSS по email OK
Супер статья - пользуюсь Code-Igniter уже давно.
CodeIgniter curl library can be used for parsing data in JSON format. You will need to define JSON functions in curl operation for that. In other words, you have to define and send JSON notation through POST.