———————– CINEPOLIS MORELIA ————————
$ch = curl_init();
// $timeout = 5;
// curl_setopt($ch,CURLOPT_URL,$url);
// curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
// curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
// $data = curl_exec($ch);
// curl_close($ch);
// return $data;
//}
//$returned_content = get_data('http://media.cinepolis.com/cartelera.aspx?ci=32&co=0');
//echo $returned_content;
include_once('simple_html_dom.php');
// Create DOM from URL
$html = file_get_html('http://media.cinepolis.com/cartelera.aspx?ci=32&co=0');
// Find all element with class rt_combo_top
//$ret = $html->find(‘table.vdp_tableStyle01’);
//foreach ($ret as $strhtmla) {
// echo $strhtmla;
//}
echo $html;
$html->clear();
unset($html);
?>
———————– CINEMEX MORELIA ————————
find(‘table.vdp_tableStyle01’);
//foreach ($ret as $strhtmla) {
// echo $strhtmla;
//}
echo $htmlA;
$htmlA->clear();
unset($htmlA);
?>