Jump to content

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
Link to comment
https://forums.phpfreaks.com/topic/5408-upload-files-across-domains/
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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.