lovesmith Posted June 10, 2008 Share Posted June 10, 2008 well i have image in the my website say "http://www.mysite.com/images/abc.jpg" all i wanted to do is duplicate the image abc.jpg and make a copy with name abc_copy.jpg can anyone throw a light how to do this? Link to comment https://forums.phpfreaks.com/topic/109526-duplicate-image-in-the-folder/ Share on other sites More sharing options...
Lefteris Posted June 10, 2008 Share Posted June 10, 2008 You could do it like that: $fcontents = file_get_contents("yourimagepathhere"); file_put_contents("yourcopypathhere",$fcontents); Read up on file system functions if you have anymore questions Link to comment https://forums.phpfreaks.com/topic/109526-duplicate-image-in-the-folder/#findComment-561827 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.