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-23101294");
$keywords="Pelikan Afterglow Controller for Play Station 2 (PL-691) (PL691)";
$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 Pelikan Afterglow Controller for Play Station 2 (PL-691) (PL691) lights up and flashes when the lights are turned down. Features Pelican's exclusive R2/L2 action button for comfort and intense gaming – they are positioned near the bottom of the controller for better controller. Two rumble motors add realism. Also features four buttons, four shoulder triggers, two analog sticks and a multi-directional D-pad.
|
Pros: Love the color and style. |
Cons: Read the warning label carefully. |
Pelikan Afterglow Controller for Play Station 2 (PL-691) (PL691)Newbie Rating
2 Thumbs UpReviews similar to our Pelikan Afterglow Controller for Play Station 2 (PL-691) (PL691) Review:
Mad Catz 58226 Dual Force 2 Pro Advanced Analog Controller for PlayStation 2 (mad58226) The Mad Catz 58226 Dual Force 2 Pro Advanced Analog Controller for Pla... SSD Comany Limited XaviX Bowling (pt1-bwl1) The SSD Comany Limited XaviX Bowling (pt1-bwl1) features: Realistic gr... Logitech Driving Force Pro 963293-0403 The Logitech Driving Force Pro 963293-0403 has a 900 degrees of wheel ... Mad Catz Advanced Control Pad (55326) The Mad Catz Advanced Control Pad (55326) features: 9 digital action b...