Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function curlDownload($Url)
- {
- if (!function_exists('curl_init'))
- {
- die('cURL nie jest zainstalowany!');
- }
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $Url);
- curl_setopt($ch, CURLOPT_REFERER, "https://www.denley.pl/");
- curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla");
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_TIMEOUT, 10);
- $output = curl_exec($ch);
- curl_close($ch);
- return $output;
- }
- echo curlDownload('https://www.denley.pl/');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement