-1

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.

0

1 Answer 1

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:

How to send a file to a server using curl?

Sending File with cURL

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.