KeyID = $company ; $HomeCache->TempFolder = "templates"; $HomeCache->TempFile = "symbol"; $HomeCache->BlockType = "symbol"; $HomeCache->TagFields = "symbol,company_eng"; $HomeCache->SQLSTM = "SELECT * from fin_companies where code='".$company."'"; $HomeCache->lang = $lang; $HomeCache->CreatCache(); $RScompany = $HomeCache->CacheFile; $RScompany = file_get_contents($RScompany); $link = "http://www.alamal.com.jo/percentage.php?userKay=demo&searchCompDeff=".$company; $html = file_get_html($link); $xx= 0; foreach($html->find('.dataBlock table') as $e){ if($xx==7){ $table = $e->outertext ; $table = str_replace('userKay=demo&','',$table); $table = strip_tags($table,"
");
}
$xx++;
}
?>
| |