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

Error querying database.
I get the above error when trying to insert some values to a datatable.
Here's the code :

mysql UNION | warning mysql_fetch_array !!
Code: <?php
$i = 0;
$query1="SELECT * FROM `products` WHERE `div

try catch error
I have been trying try catch but, I can't get it to work. The code opens a non existing file called

SCRIPT ERROR
Here is the CONTACT FORM I made for our website:

<form id="form1" name="

Do While statement
hi guys,

This may sound trivial but im new to php and as part of an assignmenti have to const

Email logic not working
I would like to send an email using the php email() function then if it does execute i.e sends i wou

Preloading images
Posting this question here because I am not sure where this should belong.I am building an asp.net a

Dynamic Array using glob?
Is there an easier way to do this?

I am trying to get create a dyamic array based on files wi

simple ping code
been searchin the site/web and found code thats simple but doesnt work.

I have a personal we

Displaying values from a SQL count...
Hi,
Easy enough question i just forget the exact method ..
I have ...

Code: //count win

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