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-22510981");
$keywords="Apple iPod Fourth Gen (40 GB, MAC/PC - M9268LL/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 Fourth Gen (40 GB, MAC/PC - M9268LL/A) MP3 Player has up to 12 hours of battery life and as a very cool style. Features: Stores up to 5,000 songs or 20,000 photos; supports AAC Protected AAC, MP3, MP3 VBR, Audible, Apple Lossless, WAV, and AIFF audio formats; and podcast ready, 2-inch (diagonal) greyscale LCD with LED backlight. Has up to 15 hours of music playback; up to 5 hours of slideshows with music, Comes earbud headphones, AC adapter, and USB 2.0 cable, Compatible with Mac OS X v10.2.8 or v10.3.4 or later; Windows 2000 with Service Pack 4 or later, or Windows XP Home or Professional with Service Pack 2 or later . You'll find settings for the Alarm Clock and Sleep Timer in the Extras menu and so much more. I can also download photo and with its built-in backlighting, I can admire those photos indoors or out. This Apple iPOD offer so jmuch. I greatly recommend getting one for yourself.”
Pros: Compact, features and great sound. |
Cons: Expensive |
Apple iPod Fourth Gen (40 GB, MAC/PC - M9268LL/A) MP3 PlayerNewbie Rating
2 Thumbs UpReviews similar to our Apple iPod Fourth Gen (40 GB, MAC/PC - M9268LL/A) MP3 Player Review:
Philips GoGear SA261 (512 MB) MP3 Player The Philips GoGear SA261 (512 MB) MP3 Player features: built-in microp... Apple iPod nano White (1 GB, MA350LL/A) MP3 Player The Apple iPod nano White (1 GB, MA350LL/A) MP3 Player features: 1GB e... Philips GoGear HDD6330 (30 GB) MP3 Player The Philips GoGear HDD6330 (30 GB) MP3 Player features: 30GB memory th... Apple iPod mini Blue Second Gen. (6 GB - M9803LL/A) MP3 Player The Apple iPod mini Blue Second Gen. (6 GB - M9803LL/A) MP3 Player has...