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