Jump to content

How to replace the image on server with a new one using the same image name?


oavs

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.