Kliknalem ale myslalem ze albo ta albo ta, no ok poprobuje wieczorem, dziekuje i pozdrawiam
Kod
<?php
$hand = curl_init();
curl_setopt($hand, CURLOPT_URL, 'http://weeb.tv/online/natgeochannel');
curl_setopt($hand, CURLOPT_POST, 1);
curl_setopt($hand, CURLOPT_POSTFIELDS, 'title=CURL&action=edit');
curl_exec($hand);
curl_close($hand);
$content = curl_exec($hand);
?>
<?php
preg_match('#<div id="programmeList">([^<]+)</div>#i', $content, $result);
print_r( $result );
?>
Mam taki kod, trochę poczytałem ale chyba coś źle robię, doczytałem że wiele osób poleca curl choć ponoć nie ma to dużego znaczenia przy mało skomplikowanych skryptach w jaki sposób to wyciągnę. Niestety powyższy kod wyrzuca mi
Kod
([^<]+)#i', $content, $result ); print_r( $result ); ?>
tyle po wejściu na stronę?