Hello,
I was hoping for some help in the right direction. I am creating a PHP/MySQL script and I was wondering what is the best way of being able to use it as a standalone application on a local computer.
It's a little complicated, but let's say it's an online shopping cart script. Let's say someone comes in the local store and purchases a product- I want the employee to be able to ring up that product using the website shopping cart script- simple enough.
However, I have some issues. I want it to be able to do some things that you can only do with a standalone application- for example when you click "Print", you don't have to mess with a printer dialog box- it would just work as a quick print button and start printing the job on your default printer.
Most importantly, let's say the store's Internet connection goes down for a few hours. The store employee should be able to still allow the customer to purchase the goods, ring it up through the system and have the info stored offline somehow (maybe a temp SQL database??)... Once the Internet connection is restored, all offline transactions can now be added to the online SQL database and updated.
I hope I explained this properly. I REALLY am in desperate need to find the best way of being able to do this. I have seen various PHP compilers, but do they allow you to use everything like Javascript, jQuery, and how do they communicate with your online MySQL database? What happens if your Internet connection is lost?
Any help is greatly appreciated!
Any suggestions???