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

Problem with umlauts and UTF-8
Hello every1,

I'm creating my own little CMS at the moment and got some problems with the cha

ORA-01655: unable to extend cluster SYS.C_FILE#_BLOCK# by 128
Hi all,

Oracle 10g. Linux.

I'm facing the below error while trying to import a dumpfil

How to grab certain words ??
I am working with this API

Returns JSON.
curl http://letsbetrends.com/api/current_trends

Pspell with my own dictionary
Hello!
I've tested two cases using pspell functions.
1)
Code: $dictionary_link = pspell_new

problem with sql querry in php script
Hello guys,

What I want to do is I want to read out a csv file and then but te conent ot the

login to other site by sending post variables
hey,

here is my problem: my school gave me a mail account for school-stuff use. they mail us

echo $rows help
Hi all,

Hopefully something simple that I don't know!

I have this:

Code: [Selec

mysql query with single quotes in a variable
$sitedetails = "INSERT INTO vars (address, sitename, description, ownername, theme) VALUES ('$u

Scrolling news bar and MySQL
I am not sure if this is the correct forum to post this on. If not, I apologize. I am still pretty

xml element exists
Code: [Select]<?xml version="1.0"?>
<Addresses>
<

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