Create your first Desktop Application with PHP and PHP Desktop

wisdom isioma Since Sep 04, 2015 1 Posts

i love this work i swear. bt pls i will need d database script bcos as a programer all we want is concerning the database pls. i already av the SQLITE bt i need qurdiance pls. or a video tutorial

Zuhaib Arshad Since Sep 06, 2015 1 Posts

Nice work... BUt there is a problem.. when i install the setup of my index file which is made by innosetup it's installed but when i run my final install index file it give following error 'The Program can't start because libcef.dll is missing from your computer . Try Reinstalling the program to fix this problem ' How to resolve this issue ??

zooboole Since Jan 22, 2015 119 Posts

Thanks @Zuhaib Arshad, I think you really have to downoad the libcef.dll first. Download it and place it in your installation folder.

zooboole Since Jan 22, 2015 119 Posts

@wisdom isioma, please try to doanload the hpm app I added to the tutorial. It does this already for you.

Isaac Hacker Since Sep 08, 2015 2 Posts

Hi @zooboole

I created an application using AJAX but keep getting a request status of 0, thus my script does not work in php desktop. I have tested the exact script in IE, Chrome, Firefox and it works perfectly fine.

I did research and found something about CORS - because if I understand well php desktop uses a random port each time (?). Tried using a static port but I think there's more to it than that. Pls let me know if this is a common issue and how to workaround it

Sincerely frustrated.

zooboole Since Jan 22, 2015 119 Posts

Indeed @Isaac Hacker, if you want to work with your path or your ip address it's better you make your port static manually, otherwise PHP Desktop automatically generate the port for you. In order to make your port static, open the settings.json file and change this part:

"web_server": {
        "listen_on": ["", 7000],
        "www_directory": "www",
        "index_files": ["index.html", "index.php"],
        "cgi_interpreter": "php/php-cgi.exe",
        "cgi_extensions": ["php"],
        "cgi_temp_dir": "",
        "404_handler": "/pretty-urls.php"

So just replace the 7000 with the port of your choice.

Isaac Hacker Since Sep 08, 2015 2 Posts

@zooboole thanks for the suggestion. I tried that and it still doesn't work for me. I think I'll try to figure out the Cross-origin resource sharing way.. if you think it could be anything else please let me know. Thanks

Leidy Castaño Since Sep 09, 2015 1 Posts

Hello, I have a problem after downloading and decompressing the file phpdesktop-chrome will give you double click the .exe file you me following error message: Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.4.9 (Win32) OpenSSL/1.0.1g PHP/5.5.11 Server at Port 80

Por eso no logro entrar a la pgina principal del phpDesktop.

I have not managed to solve it ... Thanks

zooboole Since Jan 22, 2015 119 Posts

@Isaac Hacker, sometimes too you have to call the full path like Try that and see.

zooboole Since Jan 22, 2015 119 Posts

@Leidy, Please these:

  • Download a new copy of php desktop
  • Place it a folder like, Documents or your Desktop
  • Make sure you have administrative right on the folder, otherwise get them
  • An try again

zooboole Since Jan 22, 2015 119 Posts

I'm really sorry to see how you guys are all going through these little issues with the tutorial.

Actually I was supposed to write another tutorial where I will give more details on how to proceed, but the issue is that I am presently working on a linux operating system on which it's not possible to do windows development.

So, please bear with me, very soon I will find another PC for that matter and we will work things out. For now, you can all try to download the sample application I gave you, open it and check how I coded it, and if you have any question on the code just ask it here.

Bhavesh Ahire Since Sep 21, 2015 9 Posts

Hello zooboole , Thank you for this nice tutorial. I am beginner in PHP & I have made a desktop application successfully but i am unable to create a database . Please tell me how to create a database?

Thank you.

ashutosh Since Sep 23, 2015 1 Posts

hi zooboole , thanks for your blog , can u provide link of your source code for hpm_setup . when i click on my exe file . it runs without creating setup file but fails after creating and running setup file .

any help please

Shivaram Prajapati Since Sep 24, 2015 7 Posts

I have implement php desktop with Zend Framework. It work perfectly but i am unable to connect database connection in ZF2 for phpdesktop Application? Can you provide me any suggestion.

zooboole Since Jan 22, 2015 119 Posts

Thanks guys, I really appreciate you like this. For those who are looking for the sample application, download my sample, install it and open the installation folder you should have full access to all my source code. You also see the way i connected to the database.