Create your first Desktop Application with PHP and PHP Desktop



Anshul Srivastav Since Mar 17, 2015 1 Posts

Hi Zooboole, Can you let us know how to create key protection for this setup file. As I want to create a setup which will do key authentication from the online store. If authenticated then only it will install the software. Also before installation i want to make some parameter change to bind the application with the machine.

zooboole Since Jan 22, 2015 117 Posts

Anshul, Inno Setup gives you that possibility of setting a password for the setup. As for binding the machine and the software or keeping one user per installation, there many way to do that depending on the type of software you are doing.

But, I suggest use use the Licensing system to limit users.

Yashaswi Raj Shrestha Since Mar 17, 2015 3 Posts

hello every one I am new to php desktop which sounds awesome I develope application using C# and java but i today learned about php Desktop and i am willing on trying it .

just asking is the application created with php desktop stable !! or will it crash and can it work with the Connectivety to the remote Server !!

zooboole Since Jan 22, 2015 117 Posts

Yes @Yashaswi, the application can be stable. It will not crash if your code doesn't have bugs like with any software.

Concerning the power of the application, there is no real limitation. I can say your only limit is the limit of your imagination.

With PHP Desktop, you have the possibility of combining PHP, Javascript, HTML5, CSS3, etc. Which is almost impossible to have a limitation in what you can create.

Yashaswi Raj Shrestha Since Mar 17, 2015 3 Posts

i downloaded the php desktop and put just a sample file inside www folder and it worked like an application which is great But How do i create and use database with it !! HELP please !! I use to use the mysql before !! Does it have some thing like !! it !! inbuilt with the php desktop

zooboole Since Jan 22, 2015 117 Posts

USE SQLite, Yashaswi. SQLite is like MySQL and can be embeded in your application. Since you are used to mysql, you will not have problem using sqlite.

Yashaswi Raj Shrestha Since Mar 17, 2015 3 Posts

Thanks Zooboole but It will be a huge help if you could post few Tutorials on Sqlite with php in PHP DESKTOP because i was unable to even create a database !! ..

zooboole Since Jan 22, 2015 117 Posts

Ok, @Yashaswi my next tutorial on the topic will be on how to build a simple application in destination to PHP Desktop. Security and divers operating system to consider, etc.

The tutorial should be available by next week.

Saida Sisigarantang Since Apr 22, 2015 1 Posts

nice tutor zooboole....I try your tutorial, my php app run smoothly in php desktop. but when creating exe file and install it. appear error when running app "phpdesktop has stopped working" can u help me to fix it ?

zooboole Since Jan 22, 2015 117 Posts

Thanks Saida Sisigarantang, basically when such things happen, it may be that some of your files are corrupted or your application is doing impossible things such as division by zero, etc. So the nice way for windows to say it has crashed is Application has stopped working. Check your code if there is no problem with your code, especially at the run time.

Also, if you could let me see what settings you have in your settings.json, that could help if it's a configuration issue.

Thanks.



Thukten Dendup Since Apr 29, 2015 6 Posts

MyApp folder inside program file after installing the setup file

I have followed the above steps and after installing I cannot open my app from the shortcut icon created after installing the setup file. I checked the files and folders inside the program file and found out that all the folders (PHP, www, locales) are removed and all the files under those folders are moved to root dir... i.e C:\Program Files\MyApp\ as show in the picture. Can you please lend me your helping hand. I will be very grateful.

zooboole Since Jan 22, 2015 117 Posts

@Thukten Dendup you missed one step while compiling the file with Inno Steup. Read the step very well. There is a way of adding files and folders. If you also read this comment feed you will see that some people suggested others ways of compiling.

Thukten Dendup Since Apr 29, 2015 6 Posts

zooboole, I did the same way like Rinas Muhammed , click \'Add folder\' option and select root folder ( i.e, our MyApp folder itself - also confirm the dialog for including sub folders ) and it is working. Thank you all. its very helpful tutorial for a PHP developer.

I have a big project to be developed as standalone software and I guess this is the best the best solution for a PHP developer Like me.

Thukten Dendup Since Apr 29, 2015 6 Posts

@zooboole, you have done a wonderful job. Can I ask you which framework did you use to develop the HPR apps which u have uploaded over here.

zooboole Since Jan 22, 2015 117 Posts

Thanks Thukten Dendup. Soon a full tutorial on how to develop a professional desktop application with PHP Desktop.

The framework is called pinkPHP It's a little home-made framework I developed for small projects. It helps me go faster.