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

mail()
Hi all. I have a problem with emails. I am trying to set up a mail system where customers can subscr

Date Question
I'm using the TIMESTAMP() function within mysql to set the date/time for certain events. However, ho

Trouble with a select list
Hello All!
I was wondering if any of you guys could help me with a small problem I'm having!

Multiple Do / While Statements?
I'm still very new to PHP, and running in to a problem when trying to execute a do/while loop inside

Switch letters in message (basic cryptology)...
I am trying to switch letters around in a message for an application on my site (see here). The prob

Need help with a mail notify function
I was tasked with setting up a site that's been prewritten. The site is basically a form that captur

empty() error
Why does

Code: empty($USER_ID = $_SESSION["USER_ID"])
create this error...

Parse error: syntax error, unexpected $end in
hello,
i receive the error :Parse error: syntax error, unexpected $end in C:xamppxampphtdocsh

Need a fuction to count entries in a field
Hi
I need a fuction to count how many times a email address is entered in to a field.

I ma

Files in current folder. Should be an easy fix.
Never mind. I've asked about this before and just found my answer. Anyway to delete this?

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