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-23765377");
$keywords="Sony Cyber-Shot DSC-S40 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;
?>
Sony Cyber-Shot DSC-S40 Digital Camera $info[32]"; } else{ echo"
"; echo ""; echo" "; } ?>
Newbie Review by Yousef Persons Newbie Product Reviewer:
The Sony Cyber-Shot DSC-S40 Digital Camera has good features and performance and very easy to use. I have taken indoor and outdoor photos and they came out great. Features include: Imaging Device: 1/2.7" 4.1 Megapixel Super HAD™ CCD, Recording Media: 32MB internal flash memory, Memory Stick® Media, Memory Stick PRO™ Media, Lens Construction: 7 Elements in 6 Groups, 3 Aspheric Elements. Also Zoom: 3X Optical Zoom, Smart Zoom® Feature: 0 – 10X (at VGA Resolution), Digital Zoom: Precision, 0 – 2.0X Range, 6X Total. Plus it has Auto Focus: 5 Area Multi-Point AF, Center AF, Minimum Focus Distance: 19 3/4" (50cm) Telephoto, Macro Mode: Auto Macro, Shutter Speed: 1/8 – 1/2000 sec. (Auto); 1 – 1/2000 sec (Program Auto); 30 – 1/1000sec (Manual). “ This camrea is packed with feature and great for beginners.”
Pros: It's easy to use, good picture quality, well-built. |
Cons: Has no manual mode. |
Sony Cyber-Shot DSC-S40 Digital CameraNewbie Rating
2 Thumbs UpReviews similar to our Sony Cyber-Shot DSC-S40 Digital Camera Review:
Panasonic Lumix® DMC-LX1 Digital Camera The Canon PowerShot G6 Digital Camera is a compact and powerful camera... Olympus Stylus 800 / µ 800 Digital Camera The Olympus Stylus 800 / µ 800 Digital Camera has the latest technolog... Olympus Camedia D-395 Digital Camera The Olympus Camedia D-395 Digital Camera “ I would have paid more for ... Kodak EasyShare V530 Digital Camera The Kodak EasyShare V530 Digital Camera has great picture quality, vid...