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-23768210");
$keywords="Apple iPod mini Blue Second Gen. (6 GB - M9803LL/A) MP3 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;
?>
Newbie Review by James Francis Newbie Product Reviewer:
The Apple iPod mini Blue Second Gen. (6 GB - M9803LL/A) MP3 Player has up to 18 hours of battery life for a longer better performance when you need it the most. Comes with earbud headphones, belt clip, and USB 2.0 cable. Features: 6 GB model holds up to 1,500 songs; It is compatible with MP3, AAC, WAV, MP3 VBR, Audible (6), and AIFF formats. Mac and Windows; FireWire and USB 2.0 interface for fastest digital transfer available. Store a copy of your contacts, calendar and to-do lists on your iPod mini. Has a great skip protection function.. It also has 3 pre loaded games, a clock, alarm clock, calender, and countless other features. “ I'm very happy with my purchase and I recommend it to you.”
Pros: Easy operation, easy MP3 managing w/ Apple iTunes software and more. |
Cons: Expensive |
Apple iPod mini Blue Second Gen. (6 GB - M9803LL/A) MP3 PlayerNewbie Rating
2 Thumbs UpReviews similar to our Apple iPod mini Blue Second Gen. (6 GB - M9803LL/A) MP3 Player Review:
Apple iPod Fourth Gen (40 GB, MAC/PC - M9268LL/A) MP3 Player The Apple iPod Fourth Gen (40 GB, MAC/PC - M9268LL/A) MP3 Player has u... Sony Network Walkman NW-E505 (512 MB) MP3 Player The Sony Network Walkman NW-E505 (512 MB) MP3 Player features battery ... Apple iPod shuffle (512 MB, M9724LL/A) MP3 Player The Apple iPod shuffle (512 MB, M9724LL/A) MP3 Player has up to 12 hou... Creative Labs Nomad MuVo TX FM (512 MB) MP3 Player The Creative Labs Nomad MuVo TX FM (512 MB) MP3 Player is very lightwe...