- get_headers: documentation ( source)
- date: documentation ( source)
<?php
$timestamp = "1406937600";
while($timestamp < 1407024000) {
$url = 'http://download.stream.vrt.be/apps/services_sac/published/web/2014/07/24/21ztij_140724'.date('His', $timestamp).'_ondemand_128.mp3';
$headers = get_headers($url, 1);
if ($headers[0] == 'HTTP/1.1 200 OK') {
echo $url;
}
$timestamp++;
}