I have a problem with php file uploader.
I've a user procile when every user can set up his photo. The php script which load picture is on the main server and photo library is on another server. I wanna store photos to server number 2 and show these on the profile on main server (with page's files).
I know I should do it with use php ftp_put but how I can connect to second server, send photo and show it on first server?
Thanks for help.
Asked
Active
Viewed 82 times
-1

American
- 37
- 6
1 Answers
0
I would use curl for example, to send the file to the other server, but it really depends of what kind of server it is. If it's apache/php, just send it thanks to a post request.
Have a look at these links: