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-28038346");
$keywords="Apple iPod Video White (30 GB, MA002LL/A) 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;
?>
Newbie Review by James Francis Newbie Product Reviewer:
The Apple iPod Video White (30 GB, MA002LL/A) Digital Media Player holds up to 7500 songs and full-color album art. Includes a bright 2.5" 320x240 pixel TFT display. It is less than 0.5" thick and weighs 4.8 ounces and holds over 1,000 videos. Dock connector lets you connect to your computer, recharge the battery and sync files fast via USB. Has up to 14 hours of music playback; up to 3 hours of slideshows with music; up to 2 hours of video playback. “ I like the fact that the 30 GB iPod takes up about 45 percent less room than the original iPod. Transferring video’s from my PC to the iPod is really fast. Includes so many great features included. I highly recommend it.”
Pros: Good battery life, color screen with video capabilities; small size; easy navigation and so much more. |
Cons: Has no wall charger. No Firewire file-transfer support. |
Apple iPod Video White (30 GB, MA002LL/A) Digital Media PlayerNewbie Rating
2 Thumbs UpReviews similar to our Apple iPod Video White (30 GB, MA002LL/A) Digital Media Player Review:
Creative Labs Zen Nano (1 GB) MP3 Player The Creative Labs Zen Nano (1 GB) MP3 Player can play songs in both MP... Creative Labs Zen Nano Plus (512 MB) MP3 Player The Creative Labs Zen Nano Plus (512 MB) MP3 Player includes functions... Apple iPod nano Black (2 GB, MA099LL/A) MP3 Player The Apple iPod nano Black (2 GB, MA099LL/A) MP3 Player has 2GB interna... Samsung Yepp YP-Z5AB / YP-Z5AS (4 GB) 4.1 GB MP3 Player The Samsung Yepp YP-Z5AB / YP-Z5AS (4 GB) 4.1 GB MP3 offers up to 35 h...