mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
11 lines
255 B
PHP
11 lines
255 B
PHP
#
|
|
# The PHP curl module supports the received page to be returned in a variable
|
|
# if told.
|
|
#
|
|
$ch = curl_init();
|
|
|
|
curl_setopt($ch, CURLOPT_URL,"http://www.myurl.com/");
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
|
|
$result=curl_exec ($ch);
|
|
curl_close ($ch);
|