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-23081092");
$keywords="Apple iPod U2 Special Edition (20 GB, M9787LL/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 U2 Special Edition (20 GB, M9787LL/A) MP3 Player comes with an exclusive U2 poster and, of course, the signature white iPod earbuds. Comes with AC adapter, FireWire cable, and USB 2.0 cable, black enclosure with red Click Wheel and autographs of all four U2 band members on back, 20 GB model holds up to 5,000 songs; supports AAC (16 to 320 Kbps), MP3 (32 to 320 Kbps), MP3 VBR, Audible, AIFF, Apple Lossless and WAV. It has up to 12 hours battery life when fully charged (typically 4 hours); fast-charge in as little as 2 hours, and is Mac OS X or Windows 2000 and XP compatible; FireWire and USB 2.0 interface for fastest digital transfer available. “ So much you can do and so little time. I like and recommend it!”
Pros: Great size and storage capacity, features and more. |
Cons: Expensive |
Apple iPod U2 Special Edition (20 GB, M9787LL/A) MP3 PlayerNewbie Rating
2 Thumbs UpReviews similar to our Apple iPod U2 Special Edition (20 GB, M9787LL/A) MP3 Player Review:
Sony Network Walkman NW-E75 (256 MB) MP3 Player The Sony Network Walkman NW-E75 (256 MB) MP3 Player connects to USB po... Apple iPod Video Black (60 GB, MA147LL/A) Digital Media Player The Apple iPod Video Black (60 GB, MA147LL/A) Digital Media Player can... Apple iPod Video White (60 GB, MA003LL/A) Digital Media Player The Apple iPod Video White (60 GB, MA003LL/A) Digital Media Player let... Creative Labs ZEN SLEEK (20 GB) MP3 Player The Creative Labs ZEN SLEEK (20 GB) MP3 Player has 20 GB capacity for ...