0 Members and 1 Guest are viewing this topic.

AuthorTopic: PHP Basics: Accessing Remote URLs using cURL  (Read 1506 times)

Offline aegkaluk

  • Administrator
  • Hero Member
  • *****
  • Posts: 1103
  • Total Like : 0
    • Email
« on: 12, 09, 2011, 09:23:17 »
http://www.askaboutphp.com/65/php-basics-accessing-remote-urls-using-curl.html

Fetching a URL with the GET Method
The simplest way to start using cURL is to fetch a URL with the GET method.

Code: [Select]
<?php
$c 
curl_init('http://www.askaboutphp.com/robots.txt');
curl_setopt($cCURLOPT_RETURNTRANSFER1);
$page curl_exec($c);
curl_close($c);
?>