Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1. <?
  2.  
  3. $ch = curl_init('https://vk.com');
  4.  
  5. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  6.  
  7. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  8.  
  9. curl_setopt($ch, CURLOPT_HEADER, false);
  10.  
  11. $html = curl_exec($ch);
  12.  
  13. curl_close($ch);
  14.  
  15.  
  16.  
  17. echo $html; // Выведет код страницы vk.com
  18.  
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement