Forums

PHP

This topic is locked

Image Upload problem

Posted 18 Sep 2006 13:15:15
1
has voted
18 Sep 2006 13:15:15 ASif Iqbal posted:
hi all,
i m back with my question.

server-model: PHP

ok, i have a page containing one image upload option. and when i submits.
uploaded image is shown in the same page with again image upload option.
now suppose again i upload any image the old image will be replaced with the new uploaded one.
but still i see the old image that has been replace with new one.
but i get the new image when i refresh the page.

can you help me to get the letest image at once without any page refresh.

Replies

Replied 18 Sep 2006 17:10:34
18 Sep 2006 17:10:34 Roddy Dairion replied:
Sorry am not understanding the problem. Is it that your can't see the picture that has been uploaded or you can see it but you want something else to appear?
Replied 19 Sep 2006 12:05:27
19 Sep 2006 12:05:27 ASif Iqbal replied:
sorry for let u confuse.<img src=../images/dmxzone/forum/icon_smile_shy.gif border=0 align=middle>

acctually i have a page that shows a image with one image upload option.

if i upload any new image this would replace the image(but with the same name and path) that is being shown on the page.

but i still getting the old image on that page, that was supposed to be chaged with the new one.

acctually the image is calling from the brower cache and when i refresh the page i get the new one.

so i think i may be cache problem, is there any way to bond browser to call images from server each and every time.

thank you for your reply.
Replied 19 Sep 2006 12:20:32
19 Sep 2006 12:20:32 Roddy Dairion replied:
<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> didn't we talk abt this last time?? you can use
&lt;META HTTP-EQUIV ="Expire" CONTENT ="0"&gt;
or
header("Cache-Control: no-cache, must-revalidate";
Replied 19 Sep 2006 12:47:39
19 Sep 2006 12:47:39 ASif Iqbal replied:
thanks to remember me.

i used it but not working. see i m giving you small demo page link. that is single page(image.php) with one image folder.
link : www.xgenmedia.com/test/


please check this in IE.

and you can download the code from same test folder (test_image.zip).
waiting..............bye.

Edited by - asif133 on 19 Sep 2006 12:49:36

Reply to this topic