aboutsummaryrefslogtreecommitdiff
path: root/php/examples/simpleget.php
blob: 0ae4313157d6633c4dda9fea5def646bd3712a95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
//
// A very simple example that gets a HTTP page.
//

$ch = curl_init();

curl_setopt ($ch, CURLOPT_URL, "http://www.zend.com/");
curl_setopt ($ch, CURLOPT_HEADER, 0);

curl_exec ($ch);

curl_close ($ch);
?>