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-22202794");
$keywords="Sony Network Adaptor for PlayStation 2 (711719704300)";
$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 Network Adaptor for PlayStation 2 (711719704300) features: Enables online play for select PS2 games, Connects via the expansion bay ,Offers both dial-up and broadband connectivity (ISP not included), Includes Start-Up Disc with playable demos of Frequency and Madden NFL 2003. To use the network adapter, you need a PlayStation2 game system, an 8 MB memory card with at least 137 KB of space, and a dialup or broadband Internet connection with an Internet service provider. The network adapter works with just about any ISP service, including AOL, AT&T WorldNet, EarthLink, Prodigy/SBC, and Sympatico.
|
Pros: Works great. |
Cons: Need 8 MB memory card with at least 137 KB of space. |
Sony Network Adaptor for PlayStation 2 (711719704300)Newbie Rating
2 Thumbs UpReviews similar to our Sony Network Adaptor for PlayStation 2 (711719704300) Review:
Monster Cable High performance S-Video AV hookup of Sony PlayStation 2 (PLG300 SV-10) (pgl300sv10) The Monster Cable High performance S-Video AV hookup of Sony PlayStati... Pelican Spirit Wireless Controllers for Xbox Twin Pack (pl-2044) The Pelican Spirit Wireless Controllers for Xbox Twin Pack (pl-2044) d... Intec G1322 Screen Magnifier (e121036) The Intec G1322 Screen Magnifier (e121036) features: Snap-on lens magn... Intec G8205 Extension Cable (xbx-xtensio) The Intec G8205 Extension Cable (xbx-xtensio) features include: This 6...