Create your first Desktop Application with PHP and PHP Desktop



zooboole Since Jan 22, 2015 109 Posts

Concerning how to connect to the database, it will actually depend on your application architecture, and on the Framework you are using if any. But generally you can rely on PDO extension to do that. Please check this answer I gave sometime ago on how you can use PDO to connect to SQLite Database: http://phpocean.com/forum/topic/create-your-first-desktop-application-with-php-and-php-desktop/4/list/4#100

Shivaram Prajapati Since Sep 24, 2015 7 Posts

Hello I get "Error 404: Not Found File not found" Message when i try to Zend module. So how can i debug actual cause of error. Looking to debug log i get "13:56:32.032 DEBUG: OnLoadingStateChange: loading=0, url=http://127.0.0.1:53856/public/album - 13:56:44.766 DEBUG: WM_DESTROY - 13:56:44.766 DEBUG: RemoveBrowserWindow(): hwnd = 985192 - 13:56:44.766 INFO: Stopping Mongoose web server - 13:56:44.766 DEBUG: Mongoose webserver stopped immediately - 13:56:44.766 DEBUG: RemoveBrowserWindow(): hwnd = 1902702 - 13:56:44.766 DEBUG: GetBrowserWindow(): not found, hwnd = 1902702 - 13:56:44.766 WARNING: RemoveBrowserWindow() failed: GetBrowserWindow() failed"

Above error log. So How can i get actual php error.

Shivaram Prajapati Since Sep 24, 2015 7 Posts

Does php desktop support modrewrite OR how to enable modrewrite? I think my because of this above error which i post is occur.

zooboole Since Jan 22, 2015 109 Posts

yes it does support the rewrite_mod. Make sure to make you port static, check this: https://code.google.com/p/phpdesktop/wiki/KnowledgeBase#Urlrewritingsupport

Bhavesh Ahire Since Sep 21, 2015 9 Posts

Thanks zooboole for the sample application. Now my database is created and application is working fine.

Shivaram Prajapati Since Sep 24, 2015 7 Posts

My port is correct which is set 0. Basic framework of zend Framework 2 is working apart from that i create module and try to link it url then it give 404 page not found error.

zooboole Since Jan 22, 2015 109 Posts

Set the port like 7577, or any other available port, then use your URLs like htp://localhost:7577/link.php, hope you understand the concept?

Shivaram Prajapati Since Sep 24, 2015 7 Posts

Its mean Zendframework is not supported by Php Desktop. The url of zend framework is like http://locahost/zendtest/public if i need to go specific say album the url will be http://locahost/zendtest/public/album from above answer i need to put .php at end of url. I am right?

Bhavesh Ahire Since Sep 21, 2015 9 Posts

Hi zooboole, How can we create .exe file with product key ? Is it possible with PHP Desktop? Please guide. Thank you.

zooboole Since Jan 22, 2015 109 Posts

@Shivaram, it does support Zend, the case you are having concerns the URL rewriting and you need to configure PHP Desktop to support it, have a look at this: http://phpocean.com/forum/topic/create-your-first-desktop-application-with-php-and-php-desktop/4/list/7#144



Shivaram Prajapati Since Sep 24, 2015 7 Posts

@Zooboole, Can you help me how manage url rewriting for zend but i didnot get pretty-urls.php. I did not get it how to manage for zendframework.

Shivaram Prajapati Since Sep 24, 2015 7 Posts

No reply for my previous query.Can you help to manage url for ZendframeWork?

zooboole Since Jan 22, 2015 109 Posts

Sorry, I did not answer your previous question. Actually you must replace pretty-urls.php with you application entry point file, usually the index.php file. This file takes your request and handles it to your routing system.

Bhavesh Ahire Since Sep 21, 2015 9 Posts

Hi, zoobole i have made 2 php desktop applications & both are working. But now i am unbale to craete new app . I am following same steps as you mentioned in tutorial. My new app shows window that PHP desktop chrome has stopped working. please help . Thank you.