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

Do not allow posting of whitespace
Currently the script below works if the user does not type a name/message, but if i create a whitesp

Form errors in an array
I'm processing a form and putting the errors in an array. empty($errors) doesn't seem to do the tric

retrieving images from mysql database using php
So I've been trying to figure out how to store images in a mysql database, and as far as i can tell

Stopping page post back
I have few literal contriols in my page and a repeater too. But inspite of using update panel, postb

array_combine() error
getting an "Warning: array_combine() [function.array-combine]: Both parameters should have an e

Add a sign-up feature to a flat file login script
I'm working on a flat file login script and I would like to add a sign-up feature to it with a email

update post issues
I am trying to create an update to a post function, while the update does occur, the page routing an

sql problems
I am having a small problem with my sql statement. it is inserting into 4 of the fields.

fie

Move array index to end
Hey guys,
Quick question:

I have an array that looks like this:
Code: [Select]$var =

import table with dependency
Hi

What is the best way to import table back which has dependency?

SQL> cre

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