handling file upload

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ozgur uksal
Forum Newbie
Posts: 3
Joined: Wed Jan 17, 2007 10:25 pm

handling file upload

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
ozgur uksal
Forum Newbie
Posts: 3
Joined: Wed Jan 17, 2007 10:25 pm

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply