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

How to assign a textbox value to PHP variable??
Hi ! Can any one help me out as quickly as possible. As I m new to PHP.
Plz tell me how to assign

Using system() and bringing back the results
I am aware that you can use system() within PHP to execute system commands, but I was wondering if t

Hashing?
Hi, I was hoping to take a string value then convert it - consistently - across each of our pages in

Easy administration on MySQL databases
My website is database driven and I am very tired of manually making queries to my tables in order t

Displaying image pathname instead of image
Hello

Im trying to upload and then display images from a mysql database - Its only basic and

gather checkbox data from form into email
Hello all,

First, i'd like to thank everyone who responded to my previous posts regarding set

This is driving me nuts!
This insert query looks to be alright, however I get this error:

QuoteYou have an error in yo

Auto fill in input value based on User_ID
Hello,

I'm looking form some input on the following problem.

User loads page ->

Displaying data from database into a 2 dimensional table
Good day!

I'm a beginner in PHP and I'm not expecting a full coding for this qestion. I'm jus

Is there a way to override built in php functions without APD?
I am trying to use the
rename_function()
override_function()
options that are built into

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