Here's a JS solution. All URIs are written into an array by PHP, then a JS interval cycles through them:
var urls = ['www.example.com/id/1','www.example.com/id/2','www.example.com/id/55'];
var current = 0;
var interval = window.setInterval(function(){
document.getElementById('container').innerHTML = urls[current];
current += 1;
if(!urls[current]) {
window.clearInterval(interval);
}
}, 1000);
On the PHP side the first line will look like this ($uris
is an array with all URIs):
echo "var urls = ['".implode("','", $uris)."']";
Here's a JSFiddle example.