Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_url_contents($url){
- $crl = curl_init();
- $timeout = 5;
- curl_setopt ($crl, CURLOPT_URL,$url);
- curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout);
- $ret = curl_exec($crl);
- curl_close($crl);
- ret
Add Comment
Please, Sign In to add comment