etnoo Posted December 1, 2007 Share Posted December 1, 2007 I have 4 images. I need to be able to have 4 random people upload their image "x.jpg" and replace each of those images. So i guess i need a way to take the uploaded data (x.jpg) and write it to html file so it will overwrite the current image. Any help will be appreciated. Link to comment https://forums.phpfreaks.com/topic/79666-overwriting-data/ Share on other sites More sharing options...
Wes1890 Posted December 1, 2007 Share Posted December 1, 2007 ^ No need to edit the html, just replace the images in your images directory. Search google for a PHP Image Upload Script and when the user uploads an image, just have it replace the old one in the directory Link to comment https://forums.phpfreaks.com/topic/79666-overwriting-data/#findComment-403565 Share on other sites More sharing options...
etnoo Posted December 1, 2007 Author Share Posted December 1, 2007 Would there be an issue with the files/pictures having different names? Link to comment https://forums.phpfreaks.com/topic/79666-overwriting-data/#findComment-403812 Share on other sites More sharing options...
Wes1890 Posted December 2, 2007 Share Posted December 2, 2007 ^ You can rename them before saving them... thus overwriting the old ones Link to comment https://forums.phpfreaks.com/topic/79666-overwriting-data/#findComment-403926 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.