Hello. Please explain to me some things. Here I have a local server, I write it on SparkJava ... And it turns out the server can be collected in a jar archive. Next, I write the server in php and I can drop php scripts.
Both servers are permissible, but how can they work on the Internet? How does the server work on hosting in different languages? How to run jar if the server is not in my home? How does all this work? (