', '
'); //debug--make sure we get the page//echo $page;//exit(); //Explode into an Array $entries = explode('
', $page); //Shift the first item off, it's broken //array_shift($entries); //Step through the entries and pick out the data foreach ( $entries as $val ) { //$listing['auditioncity'] = get_string_between($val, '_lbl_AuditionLocation">', ''); //$listing['auditiontime'] = get_string_between($val, '_lbl_AuditionTime">', ''); //$listing['pay'] = get_string_between($val, '_lbl_PayNoPay">', ''); //$listing['equity'] = get_string_between($val, '_lbl_EquityNonEquity">', ''); //$listing['restrictions'] = get_string_between($val, '_lbl_TypeRestrictions">', ''); //$listing['timecommit'] = get_string_between($val, '_lbl_TimeCommitment">', ''); //$listing['material'] = get_string_between($val, '_lbl_Material">', ''); //$listing['contact'] = get_string_between($val, '_lbl_ContactInfo">', ''); //$listing['email'] = get_string_between($val, '_hl_Email" href="mailto:', '">'); //$listing['website'] = get_string_between($val, '_hl_Website" href="', '" target="_blank">'); //$listing['guid'] = get_string_between($val, 'rpt_auditions_', '_lbl_'); $listing['moreurl'] = 'http://www.leagueofchicagotheatres.org'.get_string_between($val, '

'); $listing['company'] = get_string_between($val, '"
', '
'); $listing['title'] = get_string_between($val, 'html">', '
'); $listing['desc'] = get_string_between($val, '
', '
'); $listing['auditiondate'] = get_string_between($val, 'Audition Date: ', ''); $listing['dateposted'] = get_string_between($val, 'Posted Date: ', ''); $listing['RFC882_dateposted'] = date(r, strtotime($listing['dateposted'])); //exclude the date in the title if it looks invalid if (strlen($listing['auditiondate']) > 3){ $listing['listing_title'] = "{$listing['title']} auditioning on {$listing['auditiondate']}"; }else{ $listing['listing_title'] = $listing['title']; } //Sanitize the listing $listing = sanitize($listing); $items .=<< {$listing['listing_title']} {$listing['moreurl']} {$listing['guid']} <strong>{$listing['title']}</strong><br /> <strong>Audition Date:</strong> {$listing['auditiondate']}<br /> <strong>Producing Company:</strong> {$listing['company']}<br /> <strong>Description:</strong> {$listing['desc']}<br /> <strong>Date Posted:</strong> {$listing['dateposted']}<br /> <br /> <a href="www.leagueofchicagotheatres.org/component/industryaudition/industryauditionlist.html">Source</a> Auditions {$listing['RFC882_dateposted']} block; } //Tack on the rest of the feed tags $feed=<< League of Chicago Theatres Auditions http://www.chicagoplays.com/industry/auditions.aspx A RSS feed of League of Chicago Theatres auditions en http://blogs.law.harvard.edu/tech/rss 120 $items block; header("Content-Type: application/xml; charset=iso-8859-1"); print $feed; ?>