So I am creating a website (HTML/PHP/Jquery/MySQL) that needs to communicate to a specialized printer (a fiscal printer with a special driver), and I was planning on keeping it completely online on a remote server. However, I found out that the driver's proper use requires that I use a local server to run the tool that allows the website's PHP to interact with the driver.
Now, I am aware that I can make the website completely local while maintaining a remote database and pushing updates onto all of the computers that will have this software whenever I need. This would solve the problem at hand quickly. However, I prefer to maintain a remote server to make sure that any updates or fixes can be done quickly instead of having to manually update hundreds of computers in the future. I also looked into HTML5's offline capabilities, but that doesn't help me since I need to use the PHP locally.
What I want to know is if it's possible to have the website run mostly on the remote server, while allowing this one functionality to run on the local server? That is, is it possible for me to force the PHP to use the local server when I need it to?
Thank you in advance :)
PS: I asked this question in the Webmasters page, but it was marked on hold because it is a programming question. I'm new at this, so I hope that I got it right by posting it here (I checked the FAQ, and I think I'm on the safe side.)