Divya N
Divya N

Reputation: 41

How to develop a desktop application or exe file for the web app developed in PHP,so that the customer can access it when there is no internet

We have a web-application(Loyalty platform for restaurants) developed in PHP. But most of these merchants dont have internet connection all the time. So, is there way to convert only merchant module into a desktop application so that merchant works stand alone and it syncs to web application whenever there is an internet connection.

Upvotes: 4

Views: 1402

Answers (4)

Shoban
Shoban

Reputation: 23016

I am working on a similar project and in my case I am following the below aproach.

  1. Web Application is PHP and MySQL
  2. Desktop Application is .net Application using SQL Lite
  3. Windows Service checks for internet connection and syncs db in the background

In my case, my users can go offline for days or weeks and data was critical for me and I felt HTML 5 offline content was not the best option for this.

Upvotes: 2

Nish
Nish

Reputation: 2356

Develop a desktop application in .net or Java what ever you are familiar with and use some database like SQLite to save the data locally. When ever the user goes to online you need to connect to your online database and sync the data.

If there is possibility that same data can be updated by different users, then you have to plan on handling the conflicting scenarios like if a data record is updated at both end which data should be used. If there is no possibility to concurrent update then simply you will have to upload your data when user goes online.

Upvotes: 0

Rosmarine Popcorn
Rosmarine Popcorn

Reputation: 10967

Yes it is possible ,but not like a wizard job.

If you know only PHP than you can use Titanium ,and deploy Desktop App's. You can use a local database ,an XML ,jSON or SQLite and on the first connection with internet you can clear the local database and update the Remote one.

Upvotes: 3

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798606

No. Designing a desktop PHP app is very different from designing a web PHP app and will require major amounts of rearchitecting.

Now having said that, it is possible to deploy a web server to the client's machine and have it run a web PHP app there. It will still require some rearchitecting to get the sync working though.

Upvotes: 0

Related Questions