QUOTE(BetaWar @ 17 Nov, 2006 - 06:02 PM)

filetime() i believe gives the time that the file was previously updated. If you want it to tell the next update time then get the filetime() then add a certain number to it so that it changes. I am not sure that this works great or anything but it may work.
Thanks for your suggestion. It made me check php.net for filemtime() function.
And the solution was there! Filemtime is one of those file functions, which caches
the information. If the same file is being checked multiple times within a single script, one must use clearstatcache. So my code looks like this now:
CODE
$updated = filemtime($file);
clearstatcache();
....... code, where I update the file, if needed .....
$updated = filemtime($file);
Now the second call of the same function gives a correct result.
- Lauro -