Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <?php
  2. function curl($url, $post=null){
  3. $ch = curl_init();
  4. curl_setopt($ch, CURLOPT_URL, $url);
  5. if($post != null){
  6. curl_setopt($ch, CURLOPT_POST, true);
  7. curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
  8. }
  9. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  10. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  11. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  12. $exec = curl_exec($ch);
  13. curl_close($ch);
  14. return $exec;
  15. }
  16. header("Refresh:2");
  17. $html = curl('http://www.iniroots.com/?ref=10618');
  18. echo $html;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement