curl/docs/examples/simpleget.php
2001-02-19 13:38:05 +00:00

14 lines
204 B
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);