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-22780686");
$keywords="Canon PowerShot SD300 / Digital IXUS 40 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 PowerShot SD300 is a 4 megapixels ultra-compact digital camera in a new styling, slimmer profile packed with cutting edge technology UA Lens and Canon’s exclusive DIGIC II . It delivers quality image up to 2272x1704 pixel. It comes with 3x optical ( 35-105 mm)f/2.8-4.9 zoom/3.2 digital zoom lens, a 2.0-inch LCD with up to 10x playback zoom-s cool, capable of recording short video clips at 30 fps with AVI format, fast exposure speeds at 2.4 fps, SD Card for storage, built-in flash, microphone, USB connectivities and powered by Lithium battery that can last up to 140 pictures. Excellent camera for portability and performance at a fair price. Best option for micro sized still and video camera at a reasonable cost.
Pros: Features, performance, ultra compact, bigger LCD, style, nice software bundle |
Cons: Battery, small memory card included |
Canon PowerShot SD300 / Digital IXUS 40 Digital CameraNewbie Rating
2 Thumbs UpReviews similar to our Canon PowerShot SD300 / Digital IXUS 40 Digital Camera Review:
Sony Cyber-Shot DSC-T5 Digital Camera The Sony Cyber-Shot DSC-T5 Digital Camera comes with 5.1 megapixel res... Kodak EasyShare C300 Digital Camera The Kodak EasyShare C300 Digital Camera provides high quality images; ... Pentax Optio 33WR Digital Camera The Pentax Optio 33WR is a 3 megapixels digital camera offers a broad ... Sony Cyber-Shot DSC-F828 Digital Camera The Sony Cyber-Shot DSC-F828 is an 8 Megapixel D-SLR digital camera w...