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-22270320");
$keywords="Sony PlayStation 2 DualShock 2 Controller (1145932)";
$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 Sony PlayStation 2 DualShock 2 Controller (1145932) offer greater control, a wider variety of operations, and a more compelling interactive experience Includes 2 convex analog thumb pads and 2 force-feedback solenoid rumblers Compatible with all software that supports the original Dual Shock controller. Main new feature: when buttons are pushed, controller can register how much pressure is being exerted.
|
Pros: Quality and features. |
Cons: Nothing great product. |
Sony PlayStation 2 DualShock 2 Controller (1145932)Newbie Rating
2 Thumbs UpReviews similar to our Sony PlayStation 2 DualShock 2 Controller (1145932) Review:
Intec G5260 The Intec G5260 offers the best protection, the most room and is by fa... Sony DVD Remote Controller Kit The Sony DVD Remote Controller Kit is by far the best DVD remote I've... Nyko 81540 64MB Memory Card for GameCube (nyk81540) The Nyko 81540 64MB Memory Card for GameCube (nyk81540) features: 64Mb... Pelican Night Moves Wireless Dance Pad for Xbox (pl2040) The Pelican Night Moves Wireless Dance Pad for Xbox (pl2040) features:...