iceblox Posted October 2, 2011 Share Posted October 2, 2011 Hi all, Im trying to move files that im uploading from my main domain to a sub domain. I think I can achieve this using passthru? Im having issues with this, can any one point me in the right direction please? Thanks, Phil Quote Link to comment https://forums.phpfreaks.com/topic/248281-copy-uploaded-files-from-domain-to-subdomain/ Share on other sites More sharing options...
Buddski Posted October 2, 2011 Share Posted October 2, 2011 Do you have any code that you can show us? If the subdomain is configured to be a folder inside the main domain directory structure, it shouldnt be that difficult with the normal copy/move_uploaded_file functions. Quote Link to comment https://forums.phpfreaks.com/topic/248281-copy-uploaded-files-from-domain-to-subdomain/#findComment-1274981 Share on other sites More sharing options...
iceblox Posted October 2, 2011 Author Share Posted October 2, 2011 sure ive got move_uploaded_file($_FILES[images][tmp_name][$key], "/var/www/vhosts/domain.com/subdomains/images/httpdocs/test/" . $filename); but im getting this error at the moment move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: open_basedir restriction in effect. Cheers, Phil Quote Link to comment https://forums.phpfreaks.com/topic/248281-copy-uploaded-files-from-domain-to-subdomain/#findComment-1274988 Share on other sites More sharing options...
iceblox Posted October 6, 2011 Author Share Posted October 6, 2011 Any ideas guys? Would really appreciate the help. Thanks, Phil Quote Link to comment https://forums.phpfreaks.com/topic/248281-copy-uploaded-files-from-domain-to-subdomain/#findComment-1276546 Share on other sites More sharing options...
iceblox Posted October 14, 2011 Author Share Posted October 14, 2011 bump Quote Link to comment https://forums.phpfreaks.com/topic/248281-copy-uploaded-files-from-domain-to-subdomain/#findComment-1279495 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.