- file_get_contents: documentation ( source)
- simplexml_load_string: documentation ( source)
<?php
$counter = 1;
while ($xml = simplexml_load_string(file_get_contents("http://www.gog.com/games/feed?format=xml&page=$counter")))
{
$counter++;
echo $counter;
}