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-22128121");
$keywords="Canon PowerShot S500 / Digital IXUS 500 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 S500 is a compact, sleek and stylish camera that delivers ultra quality images at a lower cost. This pocket-sized camera features a 3x 36-108 mm Optical Zoom lens, a 1.5-inch-118 k pixels color LCD monitor for viewing and playback, capability of video recording short clips at 15 fps, continuous shooting of 2.2 fps, built-in flash, microphone, speaker and a tripod mount. This camera has a very elegant design and classy look and ergonomically designed for comfort and ease of use. Canon PowerShot S500 is perfect for intermediate and advanced photographers who wants more portability anytime, anywhere. “ Very good point-and-shoot camera. Perfect for any vacation, party, fun, and more”.
Pros: Features, quality, portability, price |
Cons: Battery |
Canon PowerShot S500 / Digital IXUS 500 Digital CameraNewbie Rating
2 Thumbs UpReviews similar to our Canon PowerShot S500 / Digital IXUS 500 Digital Camera Review:
Canon PowerShot SD20 / IXUS i5 Digital Camera The Canon PowerShot SD20 / IXUS i5 Digital Camera features: 5-megapixe... Canon Digital Rebel / EOS-300D (with Lens) Digital Camera The Canon Digital Rebel / EOS-300D is a 6.0 megapixel professional d... Fuji FinePix S9000 Zoom Digital Camera The Fuji FinePix S9000 Zoom Digital Camera captures treasured moments ... Casio EXILIM ZOOM EX-Z600 Digital Camera The Casio EXILIM ZOOM EX-Z600 Digital Camera features: movies recorded...