first , i am sorry for moderators for this more posts ,,
i have in my control panel , upload files page
but i want upload files on another server <- i have two servers
the first server control panel ( upload page ) url is
first_server.com/admin/upload.php
my second server link is
files.second_server.com
how i can upload files to the second server from the first server ?
without redirect to the second server
my first server content is - upload.php
<form -- action=i dont know what i should set in action>
<input name=myfile type=file>
<input type=submit>
</form>
the second server file is - proccess.php
if($_FILE['myfile']){
move_uploaded_file.......
//print the file link , to get it by my first page on first server
echo $second_server_full_path . '/' . $_FILE['myfile']['name'];
}
so .. how i can done this job via curl or file_get_content
i think file_get_content will be fine .. but the max timeout is too low !
Please help !