Portál AbcLinuxu, 7. května 2024 04:25
<?php $cs = curl_init(); curl_setopt($cs, CURLOPT_URL, 'http://www.abclinuxu.cz/poradna/programovani/show/340189'); curl_setopt($cs, CURLOPT_HEADER, 0); curl_setopt($cs, CURLOPT_TIMEOUT, 20); curl_setopt($cs, CURLOPT_LOW_SPEED_LIMIT, 100); // curl_setopt($cs, CURLOPT_POST, 1); // curl_setopt($cs, CURLOPT_POSTFIELDS,$data); ob_start(); curl_exec($cs); $content=ob_get_contents(); ob_end_clean(); if(curl_errno($cs) != 0) die('error'); $cs_info = curl_getinfo($cs); curl_close($cs); echo "Info: <br />\n"; print_r($cs_info); echo "<br />Content:<br />\n"; echo substr($content,36900, 100);
Tiskni Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.