Page 1 of 1

handling file upload

Posted: Sun Feb 04, 2007 8:52 pm
by ozgur uksal
hi,
Is there any way to upload data across domains? In other words, assume you own two domains, and one of them is going to be out of web space, and you want to use the other domain to store data. Since, your php upload script is on the first domain, is there any way to upload data across domains?

thank you
ozgur uksal
http://www.webcheatsheet.com/php/file_upload.php

Posted: Sun Feb 04, 2007 9:11 pm
by feyd
If they are hosted on the same physical server it shouldn't be too difficult to copy the data across directories. However, this can open security holes from various sources.

There's FTP as well, if your build of PHP supports it. There's also remote requests that you could initiate as well.

Posted: Mon Feb 05, 2007 12:27 am
by ozgur uksal
thank you for you reply, but could you please tell me a tutorial or url that explains what you say because I couldn't find anything about it.

Posted: Mon Feb 05, 2007 9:04 am
by feyd
Copying is all down to permissions. FTP breaks down to the accounts being set up properly and PHP having support for you to do it.