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-20816142");
$keywords="Canon PowerShot SD100 / Digital IXUS II Digital Camera";
$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;
?>
Newbie Review by Yousef Persons Newbie Product Reviewer:
The Canon PowerShot SD100 is a 2 megapixels digital camera that delivers quality images up to2048 x 1536 resolution. This compact camera is ergonomically designed with ease to hold and fits in the pocket. It has bundle features including a 2x optical(35-70 mm)/3.2x digital zoom lens, capable of recording short video clips at 15 fps for 180 seconds, still speeds at 2.2 fps, SD Card, Built-in flash with 5 operating modes, 1.5 - inch 118,000 LCD panel with optical viewfinder, built-in microphone and speaker, USB connectivities and powered by Lithium battery. This has a pro quality at a consumer price. The Canon PowerShot SD100 Digital Camera is a great buy for those looking for a high quality digital camera at a reasonable price.
Pros: Quality, features, ultra-compact, fast, price, lightweight |
Cons: Short battery life, zoom, weak flash |
Canon PowerShot SD100 / Digital IXUS II Digital CameraNewbie Rating
2 Thumbs UpReviews similar to our Canon PowerShot SD100 / Digital IXUS II Digital Camera Review:
Canon PowerShot SD20 / Digital IXUS i5 Digital Camera The Canon PowerShot SD20 / Digital IXUS i5 is a 5 Megapixel digital ca... Olympus FE-115 Digital Camera With the Olympus FE-115 Digital Camera you can with a touch of a butt... Kodak EasyShare Z7590 Digital Camera The Kodak EasyShare Z7590 Digital Camera is good for professionals as ... Polaroid Ion 230 Digital Camera The Polaroid Ion 230 is a 2 megapixel CMOS that captures enough detai...