•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 429,898 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,348 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 493 | Replies: 10
i have created a website where the user is able to upload images and then they are displayed on and email which is then sent out to the people of there choice.
the problem i am getting is that the images are being cached and then the new images are not displaying.
i have used if file exist to display the images on the email and also used it to unlink the files once they have been used. When the user comes to use the system next time if they upload an image of the same file type then it is displaying the cached version and not the new image. if a image with a different file type is uploaded then it works, but this will only show different images as long as the file type has not been used.
i have tried using this
which has had no effect on the situation. i put the above code inside the head tag is this the correct place to put it. the reason i put it there is because this is usually were the meta tags are placed.
the problem i am getting is that the images are being cached and then the new images are not displaying.
i have used if file exist to display the images on the email and also used it to unlink the files once they have been used. When the user comes to use the system next time if they upload an image of the same file type then it is displaying the cached version and not the new image. if a image with a different file type is uploaded then it works, but this will only show different images as long as the file type has not been used.
i have tried using this
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
which has had no effect on the situation. i put the above code inside the head tag is this the correct place to put it. the reason i put it there is because this is usually were the meta tags are placed.
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- BLUE Screen stop 0x8e (Windows NT / 2000 / XP / 2003)
- STOP Error 0x0000007A, KERNEL_STACK_INPAGE_ERROR (Troubleshooting Dead Machines)
- STOP: 0x0000000A ..... HELP PLEASE! (Troubleshooting Dead Machines)
- Hijack this log, can someone help me please?? (Viruses, Spyware and other Nasties)
- Windows will not start up properly? (Windows NT / 2000 / XP / 2003)
- Checking file on System C (Windows NT / 2000 / XP / 2003)
- boot problems (Windows NT / 2000 / XP / 2003)
Other Threads in the PHP Forum
- Previous Thread: How to pass array values from php to mysql stored procedures??
- Next Thread: Hopefully a straightforward PHP/MySQL question



Threaded Mode