oavs Posted July 12, 2010 Share Posted July 12, 2010 Hi, Ever time I upload an image using Cushy.com it re names my image. I want to upload an image to replace the previous one therefore I need to upload the same file name image. And of course it isn't working. What sort of PHP code can use so that it displays may be the last updated image or the same file name. In my banner-advert.php include I have this. This is the file I need to uplad/replace every time. <img name="n01" class="cushycms" src="/includes/banner-advert_5_2525372575.jpg" id="n01" border="0" height="248" alt="" width="490" /> And in Cushy.com I can see it, but every time I upload a new image it still referring to the old file name thus showing as [X] Any suggestions would be most appreciated. (Images aren't stored in the database.) Thanks Link to comment https://forums.phpfreaks.com/topic/207474-how-to-replace-the-image-on-server-with-a-new-one-using-the-same-image-name/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.