SIM Keliling

‘;
$html_end = ‘

‘;

//$html_start = ‘‘;
//$html_end =’‘;

ini_set (‘allow_url_fopen’, ’1′ );
ini_set (‘auto_detect_line_endings’, ‘Off’) ;
ini_set (‘default_socket_timeout’, ’60′ );
ini_set (‘max_execution_time’, ’0′ );
flush() ;
$f = fopen ($url, ‘r’ );
$doc = ”;
while (! feof ($f) ) {
$doc = $doc . fgets($f, 3072) ;
// triple buffer, default buffer 1024 bytes
}
fclose ($f) ;
if (
$doc != ”) {
$a = strpos($doc, $html_start) ;
$b = strpos($doc, $html_end) – $a ;
$show = substr($doc, $a, $b) ;
$show = ereg_replace($html_start ,”, $show) ;
$show = ereg_replace(“Read More”, ”, $show) ;
//$show = ereg_replace(‘

“SIM STNK Keliling” articles

‘, ”, $show) ;
$show = ereg_replace(‘

‘, ”, $show) ;
$show = ereg_replace(‘

‘, ”, $show) ;
$show = ereg_replace(‘http://www.tmcmetro.com/news’,’jadwal-sim/?tgl=’, $show);

print $show ;
}
flush() ;

?>

Sumber TMC Metro

Incoming search terms:

Powered by WordPress | Designed by: Download Free WordPress Themes | Thanks to Download Premium WordPress Themes, Premium Themes and Compare Premium WordPress Themes