Here is what I’m trying to achieve.
Write a php or JS program on my server that connects to a client’s PC (outside of our network) and reads files or copies them to our server.
The client folder to read is going to be the same, ex: C:\MyCSV, although subfolder names will change.
My server runs Linux, it is sufficient to assume the client has a PC, not a MAC or Linux.
I’m not looking for code, I would like to know if this is possible using PHP or JS
It is possible to make an HTML interface for the user to select and upload files, and for PHP to receive those files and act on them. But you can’t just get free access to the remote user’s filesystem.
If your client has a static IP address, they could potentially set up a SSH server or some other secure remote login protocol, allowing your script to log in to their machine and get the files. You would need to work with them to make sure that this was done securely and didn’t create any unnecessary vulnerabilities.