kriztophe Posted March 21, 2006 Share Posted March 21, 2006 Hi allI've done file uploading lots of times, but I am stuck here. Usually I setup a domain domain and it makes a folder for it, i.e.admin.mydomain.com would make a folder www/admin/But in the case of my recent host, it makes a seperate folder outside of the document root, i.e.root-- www-- adminI want to upload a file from the admin sub domain to the main root in a folder (with the correct permissions of course).I've tried using a relative path, the exact path specified in phpinfo for the folder and even http, nothing seems to work.Any ideas? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/5408-upload-files-across-domains/ Share on other sites More sharing options...
ToonMariner Posted March 21, 2006 Share Posted March 21, 2006 First thing to do is check your scripts have access to the folder. Once that is established you should be able to use the usual copy or move file functions as normal. Quote Link to comment https://forums.phpfreaks.com/topic/5408-upload-files-across-domains/#findComment-19288 Share on other sites More sharing options...
kriztophe Posted March 21, 2006 Author Share Posted March 21, 2006 [!--quoteo(post=356913:date=Mar 21 2006, 06:54 AM:name=ToonMariner)--][div class=\'quotetop\']QUOTE(ToonMariner @ Mar 21 2006, 06:54 AM) [snapback]356913[/snapback][/div][div class=\'quotemain\'][!--quotec--]First thing to do is check your scripts have access to the folder. Once that is established you should be able to use the usual copy or move file functions as normal.[/quote]Thats the problem, is finding the folder from within the sub domain, if you see what i mean. Quote Link to comment https://forums.phpfreaks.com/topic/5408-upload-files-across-domains/#findComment-19291 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.