|Wapache for Desktop PHP applications|
|Thursday, 18 March 2010 23:12|
At some point of time, some of us would have had the necessity run the Web Application we have developed in desktop, offline. Also Everyone would definitely like their App to run on desktop too.
To do this, there is a tedious process of installing a local copy of WAMP, and then using localhost to run the App in the web browser. An average user cannot be expected to go through all this hassle to run the App.
Instead of going through all this, there is a package called "Wapache" to create Desktop Applications from the existing code without any modifications, instantly.
It runs the app in a stripped-down browser like windows without any menus or toolbars.
Without going to the details, lets see how to configure the PHP code to run on desktops ASAP.
1. Download Wapache from http://wapache.sourceforge.net/sticon_conf.html
2. Extract the zip file
3. Find the folder htdocs
4. Replace the entire content with your PHP app files.
5. Re-direct the index.html to redirect to your PHP app homepage.
5. Run the Demo.exe file in the parent folder (rename it as required)
Thats it :-)
For the final touch, package the entire folder into a setup file for users to install, using http://www.clickteam.com or any other freeware.
Bingo ! Now you have desktop-ready version of your Web App that is ready to install in a single click. !
Actually, this is the best method to do this, is to migrate the code to PHP-GTK framework, and create an authentic desktop application. But that would take some amount of time, reworking the code (though minimal) to fit it in the desktop framework. If there is time constract, wapache is the best way to desktop-ize your Web apps.
|Last Updated ( Thursday, 18 March 2010 23:54 )|