Upload files across domains
Posted 21 March 2006 - 11:45 AM
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.
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
Posted 21 March 2006 - 11:54 AM
Posted 21 March 2006 - 12:02 PM
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.
Thats the problem, is finding the folder from within the sub domain, if you see what i mean.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users