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-22149022");
$keywords="Cobra XRS-9400CS 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-9400CS Radar Detector $info[32]"; } else{ echo"
"; echo ""; echo" "; } ?>
Newbie Review by Lil Sis Newbie Product Reviewer:
If you are looking for a nice combination of price, performance and durability, this model is worth consideration. You'll get all the necessities: city/highway mode, front and rear detection area and sufficient detection types (X Band, K Band, KA Band, Laser). The IntelliMute is a nice bonus - meaning that alerts are automatically muted depending on your speed.
Pros: loud, sensitive, affordable |
Cons: range could be better |
Cobra XRS-9400CS Radar DetectorNewbie Rating
2 Thumbs UpReviews similar to our Cobra XRS-9400CS Radar Detector Review:
Beltronics BEL 975R Radar Detector Serious commuters, or anyone who needs to get somewhere without wastin... Cobra XRS-9600CS Radar Detector I love the compact design on this extremely model. It slides seamless... Escort Solo S2 Radar Detector Once again, Escort brings a find choice in radar detection to the mark... Sensoro Traveller II Radar Detector This is a good, mid-range price detector that will have you commuting ...