So, I have 5-6 pages of requirements. I'm trying to build this application in PHP based on the requirements.
I want to transfer files from one server to the other server in LAN, and then send a shell command to the other server to find out if the file has been transferred successfully.
In php, I can transfer files using FTP, and send shell commands using SSH.
Using the methods above, I will need to open connection to the server first, but I don't know the ftp server name, domain name, ip address, or anything like that.
I only know the the server ID (I'm not sure what this ID is, but I guess it is like the computer's name).
An example of the server ID is: "c23bap234"
How do I open a connection with just that server ID? These servers are in the same building, have LAN connection, don't have connection to the outside world. These machines have PHP, Apache, ... installed.
If my post doesn't make sense to you, it's because I'm a learner. I hope someone can help me on this.
Thanks in advance.