gerkintrigg Posted August 9, 2007 Share Posted August 9, 2007 I'd like to copy a file, lock, stock and barrel to another location - copy, not move. I was just wondering whether there's an easy way to do this using PHP. The file is a JPG image if that helps, but it makes no difference to me how it gets copied provided that it works and I understand how it happens so that I can customise the code later if necessary. Any ideas? Thanks. Link to comment https://forums.phpfreaks.com/topic/64051-solved-copy-image/ Share on other sites More sharing options...
tibberous Posted August 9, 2007 Share Posted August 9, 2007 Yeah, theres a copy function. http://us3.php.net/copy You put in the path to your current image, then the path to where you want it to go. Was that what your asking? Link to comment https://forums.phpfreaks.com/topic/64051-solved-copy-image/#findComment-319244 Share on other sites More sharing options...
gerkintrigg Posted August 9, 2007 Author Share Posted August 9, 2007 yup, that's exactly it... I never had to do this before. I knew it had to be something simple. Thanks. Link to comment https://forums.phpfreaks.com/topic/64051-solved-copy-image/#findComment-319247 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.