I'm new to PHP. I have the below details of my server. Now I need to upload (or move) a .sql
file to the server from localhost application using SFTP. I've tried many and ended up with failures.
- Hostname
- Port Number
- Username
- Password
- Location
Please anyone give me a simple example to connect SFTP connection to my server to upload a file.