daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function get_content_from_svc($url) {
  2.   $ch = curl_init();
  3.   curl_setopt($ch,CURLOPT_URL,$url);
  4.   curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  5.   curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,1);  
  6.   curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/svc.cookie.file.txt');  
  7.   curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/svc.cookie.file.txt');  
  8.   $content = curl_exec($ch);
  9.   curl_close($ch);
  10.   return $content;
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top