hello I'm looking to grab the live footy links from http://www.footballstreaming.info/streams/todays-links/ need to grab info in-between <!-- <tokoeditarea> --> and <!-- </tokoeditarea> --> $url = "http://www.footballstreaming.info/streams/todays-links/"; $raw = file_get_contents($url); $newlines = array("\t","\n","\r","\x20\x20","\0","\x0B"); $content = str_replace($newlines, "", html_entity_decode($raw)); $start = strpos($content,'<!-- <tokoeditarea> -->'); $end = strpos($content,'<!-- </tokoeditarea> -->',$start) + 8; PHP: is that right so far? now what to do next? cheers tom
<?php $url = file_get_contents("http://www.footballstreaming.info/streams/todays-links/"); preg_match('~<!\-\- <tokoeditarea> \-\->(.*)<!\-\- </tokoeditarea> \-\->~s', $url, $a); echo $a[1]; ?> PHP:
Yes, aslong as the content on that page which updates is within <!-- <tokoeditarea> --> <!-- </tokoeditarea> -->