Jump to content


Photo

Upload files across domains


  • Please log in to reply
2 replies to this topic

#1 kriztophe

kriztophe
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 21 March 2006 - 11:45 AM

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

#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 21 March 2006 - 11:54 AM

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.

follow me on twitter @PHPsycho

#3 kriztophe

kriztophe
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 21 March 2006 - 12:02 PM

[!--quoteo(post=356913:date=Mar 21 2006, 06:54 AM:name=ToonMariner)--][div class=\'quotetop\']QUOTE(ToonMariner @ Mar 21 2006, 06:54 AM) View Post[/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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users