cURL example

<?php // CURL init $ch = curl_init('site_url'); // Параметры курла curl_setopt($ch, CURLOPT_USERAGENT, 'IE20'); curl_setopt($ch, CURLOPT_HEADER, 0); // return values from curl_exec() instead of content curl_setopt($ch, CURLOPT_RETURNTRANSFER, '1'); // get html $text = curl_exec($ch); echo $text; // disconnect curl_close($ch); ?>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.