Hi Guys,
The code tip you gave me work perefctly but I realized a weakness in my date format.
it reads \"dmy\" which will produce the sequence 100402, 110402,... and so on. for the deduction technique in file loading this is OK, but a month later, \"dmy\" will read 010502, 020502, ...., 200502, which is obviously irregular for the file loading to work when a file is missing. So I change the format \"ymd\" this way all the date will be increamental and as such a deduction will be possible especially from one month to another. But the problem is that it doesn\'t work perfectly, kindly help.
<?php
function load_file($date){
if ($date<020409) die; // date of first file
$name=gmdate (\"ymd\", $date);
if (file_exists(\"p\".$name.\".txt\"))
{include (\"p\".$name.\".txt\");}
else
{load_file($date-000001);};
}
load_file(time());
?>