Kurs Pajak Kementerian Keuangan
error_reporting(0); $cnt=$_GET['cnt']; if ($cnt<=0) { $cnt=0; } class grabber { var $error = ''; var $html = ''; function grabhtml( $url, $start, $end ) { $file = file_get_contents( $url ); if( $file ) { if( preg_match_all( "#$start(.*?)$end#s", $file, $match ) ) { //print_r($match); $this->html = $match; //exit; } else { $this->error = "Tags cannot be found."; } } else { $this->error = "Site cannot be found!"; } } function strip( $html, $show, $start, $end ) { if( !$show ) { $html = str_replace( $start, "", $html ); $html = str_replace( $end, "", $html ); //print_r($html); //exit; return $html; } else { return $html; } } } ?>