Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (11 sloc) 241 Bytes
<?php
class HttpGet {
public function get($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
}
Something went wrong with that request. Please try again.