I have two (or more) domains on the same dedicated server. For our example i will use: www.example1.com www.example2.com
Is there a way to use a form to upload files from www.example2.com and store them to www.example1.com?
Thanks for any advice.
penders
8:15 pm on Nov 15, 2010 (gmt 0)
There may be a much better solution, but could you FTP the uploaded file from example2.com to example1.com? Then delete the file at example2.com?
What happens if you specify www.example1.com/uploadscript.php as the action of the form on example2.com?
omoutop
7:25 am on Nov 16, 2010 (gmt 0)
I cant use ftp (as is commonly used) Website users will be able to upload files from one site and these files must be stored on another website.
I have never user php ftp (i am looking at it now) Also I have thought about: - frame solution - popup/modal solution (page will be hosted on storage website)
One question is if this is doable. One question is about which method is efficient enough. Another question is if must i change anything in the apache/php.ini configuration?
penders
9:15 am on Nov 16, 2010 (gmt 0)
I have never user php ftp (i am looking at it now)
Yes, I was referring to PHPs FTP functions to establish an FTP connection between servers... ftp_connect(), ftp_login() and ftp_put() [uk3.php.net] which has an example to upload a file from one server to another.