My English is bad. please understand.
I have a plan to make a website which provides Hotel booking API?!.
What i think right now are following…
- I have a JAVA based web-server and MySql DB server.
- My client would mostly be small hotel’s or motel’s owner with their own website based on PHP web-server.
- The final client which means the hotel guests would visit the hotels’ website to make reservation.
- But they do not have a fine reservation system on the websites.
- So, I’d like to provides the reservation system for easier booking for free.
- However, all the reservation records would be saved in my MySql DB Server.
Here’s my question. How could Remote PHP server insert reservation data into my remote MySql DB Server without knowing the ID/PW and allowed and opened port for external user?
And, Which technologies do I need?
I am going to study what I need!! thank you.
There is a simple way – webservices.
Implement web-service with authentication on the database server and implement web-service client on the servers which need to connect to this database. You won’t provide login-password to the MySQL database. You will provide login-password for your implemented web-service.
So, take a look at web-services technology. It is easy to understand and implement.