Hello everybody, i was struggling to figure out whether i can upload a file to a remote server using file_get_contents function.
i know i can post data! using the stream_context_create function. but i don't know if i can use this to post a file.
i don't prefer to use curl but if it's the only option i would appreciate someone explaining me how to achieve that with curl
the whole thing is about posting a file forom website A to website B which has the file called upload.php that will recieve the file and store it.
thanks for your help in advance.