where it finds a start tag.
function startTag($parser, $data){
}
// And this function tells the parser to replace the end tags with "
"
function endTag($parser, $data){
global $total;
$total = $total . "*";
}
// These lines create the parser and then set the functions for the parser to use when
// reading the document.
$xml_parser = xml_parser_create();
// Sets the functions for start and end tags
xml_set_element_handler($xml_parser, "startTag", "endTag");
// Sets the function for the contents/data
xml_set_character_data_handler($xml_parser, "contents");
// Read the file and save its contents as the variable "data"
$my_file = file("http://api.shopping.com/scripts/GSIsapiExt.dll/linkin_id-3069515/keyword-22149029");
$keywords="Cobra XRS-9700CS Radar Detector";
$mode="electronics";
$data = $my_file[1];
if(!(xml_parse($xml_parser, $data, feof($fp)))){
die("Error on line " . xml_get_current_line_number($xml_parser));
}
// Free the memory used to create the parser
xml_parser_free($xml_parser);
// Close the file when you're done reading it
fclose($fp);
$info = explode("*", $total);
$arraytotal = count($info) - 8;
?>
Cobra XRS-9700CS Radar Detector $info[32]"; } else{ echo"
"; echo ""; echo" "; } ?>
Newbie Review by Lil Sis Newbie Product Reviewer:
Featuring both city and highway modes and front and rear detection, this model will work please a wide variety of commuters. Audible alert types make it easy to know when radar is in the area. Additionally, it offers a mute feature. It's built with dependability and durability in mind. All of this - and it comes at a price that won't break the bank!
|
Pros: loud, sensitive, affordable |
Cons: some false alerts |
Cobra XRS-9700CS Radar DetectorNewbie Rating
1 Thumbs UpReviews similar to our Cobra XRS-9700CS Radar Detector Review:
Whistler DE-1773C Radar Detector This is one easy to use machine. The last thing you need on long comm... Beltronics Vector 995 Radar Detector You'd be hard-pressed to find a similarly priced model that performs a... Cobra ESD 9160 CS Radar Detector This is a great radar detectors for its price range - and that price r... Cobra ESD 9870 Radar Detector Here are just some of the features that make this such a great choice ...