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-22386522");
$keywords="Chris Sawyer's Locomotion for Windows";
$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;
?>
Chris Sawyer's Locomotion for Windows $info[32]"; } else{ echo"
"; echo ""; echo" "; } ?>
Newbie Review by Frank Newbie Product Reviewer:
The Chris Sawyer's Locomotion for Windows Features: Build a transportation empire that includes railroads, trucking, buses, airplanes, and ships,Outmaneuver ruthless competitors, Cash in on a world of opportunity moving raw materials, goods and people efficiently from one destination to another. More than 40 pre-designed scenarios, For 1 or 2 players. “ If you enjoy the "Industry Sim" type of game, you won't find many that are more enjoyable than this one “.
|
Pros: You can pick this up and play it without opening the manual. Great time-consumer. |
Cons: can't buy competitors. |
Chris Sawyer's Locomotion for WindowsNewbie Rating
2 Thumbs UpReviews similar to our Chris Sawyer's Locomotion for Windows Review:
Heroes of Might and Magic 4 for Windows The Heroes of Might and Magic 4 for Windows is rated E for everyone - ... Unreal Tournament 2004 for Windows The Unreal Tournament 2004 for Windows is rated M for mature - Mild La... SimCity 4 for Windows The SimCity 4 for Windows is rated E for everyone. With god-like power... Tiger Woods PGA Tour 2004 for Windows The Tiger Woods PGA Tour 2004 for Windows is rated E for everyone. Tig...