I have a php+mysql application and would like to know what's the best way to make my app work when the internet connection is lost.
I thought of having two identical DataBases, one in my internet host, and other in my localhost. So, when there is no connection, I would store all the data to my localhost.
My question is how can I transfer the data from my localhost to the DataBase in my internet host?