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-22378439");
$keywords="iRiver PMP-120 (20 GB) Digital Media Player";
$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;
?>
iRiver PMP-120 (20 GB) Digital Media Player $info[32]"; } else{ echo"
"; echo ""; echo" "; } ?>
Newbie Review by James Francis Newbie Product Reviewer:
The iRiver PMP-120 (20 GB) Digital Media Player features: Built-in FM tuner and speaker; integrated voice recorder, record music from any audio source (no PC required), high-speed USB 2.0 interface for easy connection and fast transfer rates. It connect to a digital camera to display photos, rechargeable, replaceable lithium-ion battery provides up to 16 hours of audio and 5 hours of video playback. Also has remote control, earphones, carrying case and hand strap included. The iRiver PMP-120 plays digital music and video files. With 20GB of internal storage, store up to 80 hours of video or up to 600 hours of music. Other features of this high-capacity player include built-in FM tuner, integrated voice recorder, built in speaker and more. “ I have had this player for a few months now and I love the features and quality.”
Pros: Battery size/life, Flexibility, USB OTG support, firmware upgradable and fast transfers. |
Cons: Camera issues. |
iRiver PMP-120 (20 GB) Digital Media PlayerNewbie Rating
2 Thumbs UpReviews similar to our iRiver PMP-120 (20 GB) Digital Media Player Review:
SanDisk Sansa™ e140 (1 GB) MP3 Player The SanDisk Sansa™ e140 (1 GB) MP3 Player features: plays MP3, WMA (in... Samsung Yepp YP-T7X (512 MB) MP3 Player The Samsung Yepp YP-T7X (512 MB) MP3 Player features: CSTN Color LCD (... Creative Labs Zen MicroPhoto (8 GB) white MP3 Player The Creative Labs Zen MicroPhoto (8 GB) white MP3 Player has 8GB capac... SanDisk Sansa™ e260 (4 GB) MP3 Player The SanDisk Sansa™ e260 (4 GB) MP3 Player is simple to use and has a ...