' . 'a rating of ' . $the_rating . ' from ' . $matches[1] . ' votes' . ''; } else { $s_return = 'A rating of $the_rating from " . $matches[1] . ' votes'; } print $s_return; logThis("./l.log", "responseText: $s_return"); // at this point $matches[1] and the url can be written out to a file // or a database // logThis("./l.log", "urld: $urld"); ob_start(); print_r($matches); $o_this = ob_get_contents(); ob_end_clean(); ob_start(); print_r($ratings); $o_ratings = ob_get_contents(); ob_end_clean(); logThis('./l.log', "matches: " . $o_this); logThis('./l.log', "ratings: " . $o_ratings); logThis('./l.log', "http_referer: " . $_SERVER['HTTP_REFERER']); ?>