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-23300714");
$keywords="GPX BCD-3154BBL Bubble Top Boombox CD Player with Digital Readout Boombox";
$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 Ryan "The Irishman" Weir Newbie Product Reviewer:
The GPX BCD-3154BBL is a top loading CD/CDR player with 4-digit LCD display with AM/FM stereo cassette. It features 30-track programming with repeat and random play, built-in microphone and DBBS, records from CD player or AM/FM broadcasts, and powered by 8 C batteries or AC .
Pros: Compact, portable, price |
Cons: No radio station presets, no remote control |
GPX BCD-3154BBL Bubble Top Boombox CD Player with Digital Readout BoomboxNewbie Rating
2 Thumbs UpReviews similar to our GPX BCD-3154BBL Bubble Top Boombox CD Player with Digital Readout Boombox Review:
Panasonic RX-D20 Radio/Cassette/CD Boombox The Panasonic RX-D20 is a Single Disc boombox and Single Tape Deck rec... Philips AZ1605 Radio/Cassette/CD Boombox The Philips AZ1605 is a single Disc Double Tape cassette tape recorder... Sony S2 Sports ZS-X1 Radio/CD Boombox The Sony S2 Sports ZS-X1 is a Single disc and radio boombox with MP3 p... Emerson PD6870RD Radio/Cassette/CD Boombox The Emerson PD6870RD is a single Disc CD player and S ingle Tape cass...