How can i delete browser's cache?
Posted: Wed Feb 11, 2009 12:58 pm
Hallo friends,
Once again i am gona need your advices
Well i am asking if there is any script or function with which i can delete browser's cache so it won't keep photos in his memory.
I am asking this because i am dealing the following issue:
I am making a web page in which i have three php files.
These are the: images.php, image_edit.php and image_insert.php
Now in the images.php file the servers reads from a DB the path of the folder in which there are the photos we want to load. Also it has a form with two links - edit and delete photo - and a buton about adding new photos in the specific folder, and this form redirects to the image_edit.php file.
The image_edit.php file shows 1 of 3 forms (weather the user clicked on one of the two links or pushed the button) and it asks for some details (e.g. confimation of the delete - if the user clicked on the "delete" link).
And last there is the image_insert.php file that makes all the changes that the user asked.
Now everthing works fine meaning except one thing:
New photos can be uploaded (both to the folder and the DB) and can be shown to the page
Already existing photos can be deleted (both from the folder and the DB) and will not be shown any more
And last already existing photos can be modified - meaning that if the user want can upload another photo in the place of an already existing and both in the DB and the folder the new photo will take the name of the old one and the old one will just disappear.
Now the problem is in the third situation (when editing) and as i said before while the new photo is uploaded succesfully in the folder and has taken succesfully the name of the old one and from the other hand the old one disappear both from the DB and the folder, unfortunatelly the new photo doesn't appears in the page but instead the old one still remains in it's place.
Only if i close the browser and open it again only then the browser refresh it's data.
So i gess that this issue is dealing probaply with browser's cashe (smth that i can't understand if we consider that i move from images.php to images_edit.php file and then to images_insert.php which after it finish whatever has to do it redirect's me back to images.php).
It would be very helpfull if somebody could help me
Once again i am gona need your advices
Well i am asking if there is any script or function with which i can delete browser's cache so it won't keep photos in his memory.
I am asking this because i am dealing the following issue:
I am making a web page in which i have three php files.
These are the: images.php, image_edit.php and image_insert.php
Now in the images.php file the servers reads from a DB the path of the folder in which there are the photos we want to load. Also it has a form with two links - edit and delete photo - and a buton about adding new photos in the specific folder, and this form redirects to the image_edit.php file.
The image_edit.php file shows 1 of 3 forms (weather the user clicked on one of the two links or pushed the button) and it asks for some details (e.g. confimation of the delete - if the user clicked on the "delete" link).
And last there is the image_insert.php file that makes all the changes that the user asked.
Now everthing works fine meaning except one thing:
New photos can be uploaded (both to the folder and the DB) and can be shown to the page
Already existing photos can be deleted (both from the folder and the DB) and will not be shown any more
And last already existing photos can be modified - meaning that if the user want can upload another photo in the place of an already existing and both in the DB and the folder the new photo will take the name of the old one and the old one will just disappear.
Now the problem is in the third situation (when editing) and as i said before while the new photo is uploaded succesfully in the folder and has taken succesfully the name of the old one and from the other hand the old one disappear both from the DB and the folder, unfortunatelly the new photo doesn't appears in the page but instead the old one still remains in it's place.
Only if i close the browser and open it again only then the browser refresh it's data.
So i gess that this issue is dealing probaply with browser's cashe (smth that i can't understand if we consider that i move from images.php to images_edit.php file and then to images_insert.php which after it finish whatever has to do it redirect's me back to images.php).
It would be very helpfull if somebody could help me