curl/php/examples/simpleget.php

14 lines
204 B
PHP
Raw Normal View History

2001-03-16 14:28:11 +01:00
#
# 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);