Delete HTML file after loading


Posted on 16th Feb 2014 07:03 pm by admin

I have limited experience with php and its been a year or two since I've last used it. I have a small web application where I want to make sure the data presented on a page (currently an HTML file) is no older than 60 seconds. The page automatically refreshes every 15 seconds. I was think about renaming the file by placing the php rename() function at the end of the file. Will this work or will the script be executed before the page is viewed? Any other suggestions?

Did you know?Explore Trending and Topic pages for more stories like this.
Thanks,
No comments posted yet

Your Answer:

Login to answer
105 Like 23 Dislike
Previous forums Next forums
Other forums

Is it possible to view php source code??
Hi All

I was just wondering if it's possible to view a websites php source code?
I know

Solution to the FindControl problem
I have seen may posts about having problems with the FindControl method. Most seem to come about bec

Price in PR
Dear Experts,
Why we have to enter the price in the PR, and why there is no free goods indicato

Please help with SMTP Authenticated PHP Email Form
Hello, I'm creating a PHP email form, and for this particular server, I have to use SMTP Authenticat

Points for Wiki contribution
Hi everyone,

I want to know how long does it take for the moderator to award points for a

Forgot password won't work
My forgot password thing is not working properly. It is giving me this errorMailbox unavailable. The

how can i display php source code snippets ?
I am outputting some pho code .. and I want to display the source code so people can copy and paste

Matchcode in ALV change header column
Hello everyone,

I am working in an SAP system that is currently in upgrade and conversion

Code working in IE but not FireFox
I created a dynamic navigation list for my website based off of a table in my database. The code is

file_put_contents and createimagefromjpeg
All,
I do somethings and then I have the following code:
file_put_contents('./test/'.$filename

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash