Jump to content

Archived

This topic is now archived and is closed to further replies.

kriztophe

Upload files across domains

Recommended Posts

Hi all

I'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
-- admin

I 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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
[!--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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.