rendered paste body<?phprequire_once("curl_http_client.php");$curl = &new Curl_HTTP_Client();$useragent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)";$curl->set_user_agent($useragent);$response = $curl->fetch_url("http://google.pl");preg_match_all("|<h[0-9]\s?.+?>(.*)</[^>]+>|", $response , $out, PREG_PATTERN_ORDER);print_r($out);//preg_match_all("|<p+?>(.*)</[^>]+>|", $response , $p, PREG_PATTERN_ORDER);/*foreach ( $out2[1] as $o ) { $o = preg_replace('/^[0-9]\.\s?[0-9]?\.?/','', $o);// $o = preg_replace('/^\[<a.+0-9]\.\s?[0-9]?\.?/','', $o); echo '<h1>'.$o.'</h1>';}echo '<br/>';foreach ( $p[1] as $tresc ) { echo strip_tags($tresc);}*/?>