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-22342389");
$keywords="Nyko 80511 iType2 Keyboard Controller for PlayStation 2 (nyk80511)";
$mode="videogames";
$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 The Electric Monkey Newbie Product Reviewer:
The Nyko 80511 iType2 Keyboard Controller for PlayStation 2 (nyk80511) is ergonomically designed for comfort and easy-to-reach buttons. Internet ready for use in online gaming, chat and email. Play and communicate without interruption 4 programmable text macros for instant messaging Full-featured analog controller with pressure sensitive buttons and vibration function. Eliminates the need to purchase a separate USB keyboard for online gaming. Plug and play - no drivers needed
|
Pros: No drivers needed. |
Cons: Nothing great product. |
Nyko 80511 iType2 Keyboard Controller for PlayStation 2 (nyk80511)Newbie Rating
2 Thumbs UpReviews similar to our Nyko 80511 iType2 Keyboard Controller for PlayStation 2 (nyk80511) Review:
Intec G8500 Starter Kit (e121056) The Intec G8500 Starter Kit (e121056) features: Programmable controlle... Pelican Eclipse II Wireless Controller The Pelican Eclipse II Wireless Controller automatically finds the cle... Mad Catz 8208 4-Player Multi-Port for PlayStation (mad8208) The Mad Catz 8208 4-Player Multi-Port for PlayStation (mad8208) lets f... Microsoft RF Adapter for Xbox (k0700005) The Microsoft RF Adapter for Xbox (k0700005) connects your console to ...