aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/simpleget.php
blob: 17c1757bf157b31ae25cb4808342c5dfb6f61feb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#
# 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);