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
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.
Does php desktop support modrewrite OR how to enable modrewrite? I think my because of this above error which i post is occur.
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
Thanks zooboole for the sample application. Now my database is created and application is working fine.
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.
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?
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?
Hi zooboole, How can we create .exe file with product key ? Is it possible with PHP Desktop? Please guide. Thank you.
@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
@Bhavesh, check this out: https://code.google.com/p/phpdesktop/wiki/KnowledgeBase#Howtogetauniquecomputeridentifier?
@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.
No reply for my previous query.Can you help to manage url for ZendframeWork?
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.
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.