DD-WRT - News
Tuesday, 25 August 2009 03:38
{php} $url = 'https://www.dd-wrt.com/dd-wrtv3/'; $start = '
'; $end = '
'; $html = file_get_contents($url); $pos_start = stripos($html, $start); $pos_end = stripos($html, $end, ($pos_start + strlen($start))); if ( ($pos_start !== false) && ($pos_end !== false) ) { $length = $pos_end - $pos_start; $result = substr($html, $pos_start, $length); } $search = ''; $replace = '

'; $result = str_replace($search, $replace, $result); $search = '

'; $replace = ''; $result = str_replace($search, $replace, $result); $search = '