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-27503268");
$keywords="Samsung YP-U1 (1 GB) 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;
?>
Samsung YP-U1 (1 GB) MP3 Player $info[32]"; } else{ echo"
"; echo ""; echo" "; } ?>
Newbie Review by James Francis Newbie Product Reviewer:
The Samsung YP-U1 (1 GB) MP3 Player has 512MB memory with support for MP3, WMA, WAV, Audio ASF and OGG formats. Has a rechargeable lithium-polymer battery provides up to 13 hours of power. This MP3 player is PlaysForSure compatible, so any music download service with the PlaysForSure logo will work. The USB port lets you copy and paste files to the player at incredible speed. It has a voice recording features so you won't miss something important. “ The sound quality is the best and very easy to use. I would buy this one again if needed.”
Pros: Excellent sound, color, easy to use and has lots of storage space. |
Cons: Can't think of any. |
Samsung YP-U1 (1 GB) MP3 PlayerNewbie Rating
2 Thumbs UpReviews similar to our Samsung YP-U1 (1 GB) 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... Creative Labs Nomad MuVo TX FM (256 MB) MP3 Player The Creative Labs Nomad MuVo TX FM (256 MB) MP3 Player is easy to use ... Philips GoGear SA261 (512 MB) MP3 Player The Philips GoGear SA261 (512 MB) MP3 Player features: built-in microp... Sony Network Walkman NW-E507 (1 GB) MP3 Player The Sony Network Walkman NW-E507 (1 GB) MP3 Player includes a software...