   [web] Ben's site of ultimate cool - also PHP question.
Finally, I have a use for my domain!OK, it's still a bit light on content, but there's what I hope is a fairly solid framework underneath.As you can see, I've integrated my home into the left side bar [grin].Now, here's the catch. Everytime the page is loaded, it grabs a cached version of the Lounge and dumps it on the page, and at the bottom of the index.php script is a link to a script that continues loading and updating the cached version. What I'd like to do is to check to see if the cached version is more than 2 minutes old (say) and if it is to force an update of the cached file before it loads. This means that the front page loads slightly slower for the viewer at that point, but at least it's not wrong.Basically, what I need to know is: How can I get the time a file was written to disk? Or should I embed it in the file itself (so the top line is , with the number being a UNIX timestamp) and check with that?Also, what do you think of the layout/design?   
  Sounds like a job for the HTTP expires header.   ;  Holy smackeroooonies!&*@ I see the light, it's beautiful. I'm overwhelmed by this page and its technical and aesthetic wonder.I think I just found God. I bow before you; I am sacrificing my right penis to you as we speak.ULTIMATE COOL   ;Quote:Original post by BoderHoly smackeroooonies!&*@ I see the light, it's beautiful. I'm overwhelmed by this page and its technical and aesthetic wonder.I think I just found God. I bow before you; I am sacrificing my right penis to you as we speak.ULTIMATE COOLHeh, thanks [smile].igni ferroque: Sounds like a plan, but I'm just using a require() to load in each of those panels, so I don't think it'll make any difference...   ;  Nice site, Ben :)   ;Quote:Original post by BoderI am sacrificing my right penis to you as we speak.;Quote:Original post by benryvesBasically, what I need to know is: How can I get the time a file was written to disk?See filectime(), filemtime(), although I'm not sure that is the best method to use.Site looks really great!   ;Quote:Original post by WanMasterQuote:Original post by benryvesBasically, what I need to know is: How can I get the time a file was written to disk?See filectime(), filemtime(), although I'm not sure that is the best method to use.Site looks really great!Thanks [smile]OK, I'll stick to embedding the time in a UNIX-timestamp form on the page itself.   