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-22512664");
$keywords="Logitech Xbox Cordless Precision Controller (963334-0403)";
$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 Logitech Xbox Cordless Precision Controller (963334-0403) equips you with a powerful 2.4GHz wireless gaming solution. Features include: Sculpted Shape Vibration Feedback ,Smaller, lighter, more comfortable, and more familiar 2.4 GHz radio frequency wireless technology with a lag-free range of 30 feet (10 meters), Requires only 2 AA batteries (included) to achieve 50+ hours of battery life with vibration on, Mini receiver plugs directly into console, Official Xbox compatibility approved by Microsoft. With a compact and light design, this controller combines performance, convenience and comfort into one great package, ensuring you of fingertip control that packs a mighty punch.
|
Pros: Combines performance, convenience and comfort into one great package. |
Cons:
|
Logitech Xbox Cordless Precision Controller (963334-0403)Newbie Rating
2 Thumbs UpReviews similar to our Logitech Xbox Cordless Precision Controller (963334-0403) Review:
Logitech Flight Force Joystick (9633180403) The Logitech Flight Force Joystick (9633180403) includes a twist handl... Microsoft Controller S for Xbox (1168643) The Microsoft Controller S for Xbox (1168643) features: Cool green con... Intec Wireless Dance Mat for Xbox (G8251) With the Intec Wireless Dance Mat for Xbox (G8251) you can place your ... Sony Network Adaptor for PlayStation 2 (711719704300) The Sony Network Adaptor for PlayStation 2 (711719704300) features: En...