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