I've been trying to pull movie times off Cinemark.com's site. So far, I've been able to come up with this messy code to pull out a part of the page:
<?php
$date = date("m/d/y");
$url = 'http://www.cinemark.com/printer_friendly.asp?theater_id=335&show_date=' . $date . '';
$fp = fopen($url, "r") or die("Could not open $url");
$str = fread($fp, 999999);
eregi("(<b><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\">)(.*)(</font>)",$str,$output_array);
echo $output_array[0];
fclose($fp);
?>
My question though: any suggestions on how I could pull the movie titles, times etc more cleanly (get rid of their HTML) so that I could display them in my own table?
Thank you