mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
15 lines
215 B
PHP
15 lines
215 B
PHP
<?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);
|
|
?>
|