/ Published in: PHP
Expand |
Embed | Plain Text
function geturl($url) { $ch = curl_init(); $timeout = 5; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $html = curl_exec($ch); curl_close($ch); return $html; }
Comments
Subscribe to comments
You need to login to post a comment.

Where do I put in the url I want to fetch??? :S