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. Quote 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? Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/64051-solved-copy-image/#findComment-319247 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.