Well, the file is delete after 60 secons. The problem is that when I am testing the script in my own PC, I can't see the delay on the screen. For example, if I do this:
<?
print("Something now . . . [".date("d/m/Y H:i:s", time())."]<br>");
sleep(5);
print(". . . and something 5 seconds later [".date("d/m/Y H:i:s", time())."]");
?>
I get this on the screen,
Something now . . . [22/08/2004 12:23:23]
. . . and something 5 seconds later [22/08/2004 12:23:28]
The result is on the sceen is obviously correct, but I get the two lines at the same time, so I do not appreciate any delay on the screen, like you can see in this web page.
http://demo.webignition.net/06/
Maybe the problem is that I have to run the code in a server different from my local PC. I don't know!!!
|