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

http to https
Hi,

Is there any specific method/condition to move an http:// page to https:// ?

bind error during socket programming
i am kinda new to socket programming. wrote the below code for a server. but getting the bind error

php form help
Hey,

I use a control file to set my meta tags and titles

Here's an example
Code: &a

form help
this doesn't work. i want the form action to go the location.href of the submit button chosen.. how

Basic Forum Tutorial
Hi, I'm new to PHP. I want to build a basic forum for my site using PHP and MySQL. I've searched t

IMAGE - SERVER SIDE scripting help...
How to receive pixel data of an image and buid a bitmap file on the server using the HTTP POST metho

PHP error. Need help urgently
Hi,

I am programming a php site and have a problem that i just cant find out how to fix. When

switch form actions? not working
i want on submit to go to different pages according to the CatID

Code: <?php $CatID=$_

Login Script Issues
I am using a script I got from http://phpsense.com/php/php-login-script.html in order to allow peopl

What am I missing here? Help!
Hello all!. I can't seem to get this working right. Well - it renders right, but something is goin

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