I don't understand this How do I work with PHP code?

195 views
Skip to first unread message

sexki...@gmail.com

unread,
Sep 1, 2014, 7:45:05 PM9/1/14
to phpde...@googlegroups.com
I just downloaded phpDeskTop last night and still trying to understand it. The problem is whenever I try to write php code <?php echo "Hello world" ?> for example the code doesn't display on the page. It seems that no php written code shows up. What am I doing wrong? Can I write and use php code in phpdesttop this was the whole point of me downloading this program was to write desktop apps in php? It's so hard to find tutorials or documents on the subject I have already read through the knowledge base from this site.

Using Windows 8

2nd question:
Why is it when I click the back button on the phpdesktop page windows prompts me that they could not find an app for that?

Please help me understand thank you!

Czarek Tomczak

unread,
Sep 2, 2014, 2:21:13 AM9/2/14
to phpde...@googlegroups.com
Are you using PHP Desktop MSIE or the Chrome version? Please test both. It might be some issue with new IE version update on Windows 8.

What back button, from mouse context menu? Does this issue also occur with the default examples provided with phpdesktop binaries?

PHP scripts are in the www/ directory. PHP Desktop binaries come with some examples in this directory. Run phpdesktop executable and you should see output of these scripts.

sexki...@gmail.com

unread,
Sep 2, 2014, 7:57:00 PM9/2/14
to phpde...@googlegroups.com
I'm using PHP Desktop MSIE I prefer to use this because everyone who uses windows has internet explorer installed. I think I don't know how to actually load a php file from www folder? Currently I have these settings in in the JSON file under web server.

"web_server": {
"listen_on": ["127.0.0.1", 54007],
"www_directory": "www",
"index_files": ["index.html", "index.php"],
"cgi_interpreter": "php/php-cgi.exe",
"cgi_extensions": ["php"],
"cgi_temp_dir": ""

Unless there is some where else that I have to place the php files. I don't know how to load a file from www folder like I said. For example I want to load a file I created index.php or 404.php for example. I do not know how to load it since every time I execute the phpdesktop-msie application the _error-page.html page comes up. At first I thought that the php files all get loaded under the msie in error_page but then I read on the wiki page only html file extensions should be provided. Perhaps that's the reason I can't get php code to load? But then if I don't load the php file in msie where do I write the php file extension from the www folder in the JSON file?

Perhaps you can provide an example or direct me to a tutorial on this since I can't find one. Usually I would look on google search before ever asking questions but there seems to be little on the web besides your wiki and issue pages that you have provided on the phpdesktop subject. You go into detail about a lot of other stuff but there seems to be little to none on the basics.

I'm an expert php coder but know little about this program and it's frustrating trying to find basic answers to basic questions.

sexki...@gmail.com

unread,
Sep 2, 2014, 8:36:32 PM9/2/14
to phpde...@googlegroups.com
By the way here is the debug results when I load the app .exe.

- 17:34:56.125 INFO: --------------------------------------------------------
- 17:34:56.125 INFO: Started application
- 17:34:56.125 INFO: Logging to: C:\Users\user\Desktop\phpdesktop-msie-1.13-php-5.4.24\debug.log
- 17:34:56.125 INFO: Log level = DEBUG4
- 17:34:56.125 INFO: Starting Mongoose 3.9b web server
- 17:34:56.125 INFO: WWW directory: C:\Users\user\Desktop\phpdesktop-msie-1.13-php-5.4.24\www
- 17:34:56.125 INFO: Index files: index.html,index.php
- 17:34:56.125 INFO: CGI interpreter: C:\Users\user\Desktop\phpdesktop-msie-1.13-php-5.4.24\php\php-cgi.exe
- 17:34:56.141 INFO: CGI pattern: **.php$
- 17:34:56.141 INFO: CGI environment variables set: TMP=C:\Users\user\AppData\Local\Temp\,TEMP=C:\Users\user\AppData\Local\Temp\,TMPDIR=C:\Users\user\AppData\Local\Temp\,SERVER_NAME=127.0.0.1,PHPDESKTOP_VERSION=1.13
- 17:34:56.156 INFO: Web server url: http://127.0.0.1:54007/
- 17:34:56.234 INFO: IE version from registry: 9.11.9600.17239
- 17:34:56.234 DEBUG: FEATURE_XMLHTTP succeeded: 1
- 17:34:56.234 DEBUG: FEATURE_WINDOW_RESTRICTIONS succeeded: 1
- 17:34:56.234 DEBUG: FEATURE_WEBOC_POPUPMANAGEMENT succeeded: 1
- 17:34:56.234 DEBUG: FEATURE_RESTRICT_ACTIVEXINSTALL succeeded: 1
- 17:34:56.234 DEBUG: FEATURE_RESTRICT_FILEDOWNLOAD succeeded: 1
- 17:34:56.234 DEBUG: FEATURE_DISABLE_NAVIGATION_SOUNDS succeeded: 1
- 17:34:56.234 DEBUG: FEATURE_FORCE_ADDR_AND_STATUS succeeded: 1
- 17:34:56.234 DEBUG: FEATURE_BEHAVIORS succeeded: 1
- 17:34:56.234 DEBUG: FEATURE_UNC_SAVEDFILECHECK succeeded: 1
- 17:34:56.234 DEBUG: FEATURE_BLOCK_INPUT_PROMPTS succeeded: 1
- 17:34:56.234 DEBUG: FEATURE_TABBED_BROWSING succeeded: 1
- 17:34:56.250 DEBUG: FEATURE_ADDON_MANAGEMENT succeeded: 1
- 17:34:56.250 DEBUG: GetBrowserWindow(): not found, hwnd = 1835148
- 17:34:56.250 DEBUG: WindowProc(): event WM_GETMINMAXINFO: could not fetch BrowserWindow
- 17:34:56.266 DEBUG: BrowserWindow(): parentHandle = 0
- 17:34:56.281 DEBUG: OleClientSite::QueryInterface(): IServiceProvider
- 17:34:56.281 DEBUG: OleClientSite::QueryInterface(): IOleInPlaceSite
- 17:34:56.313 DEBUG: OleClientSite::QueryInterface(): IDispatch
- 17:34:56.328 DEBUG: GetBrowserWindow(): not found, hwnd = 1835148
- 17:34:56.328 DEBUG: WindowProc(): event WM_SETFOCUS: could not fetch BrowserWindow
- 17:34:56.328 DEBUG: OleClientSite::QueryInterface(): IUnknown
- 17:34:56.344 DEBUG: OleClientSite::QueryInterface(): DWebBrowserEvents2
- 17:34:56.359 DEBUG: OleClientSite::QueryInterface(): IDocHostUIHandler
- 17:34:56.359 DEBUG: OleClientSite::QueryInterface(): IDocHostShowUI
- 17:34:57.469 DEBUG: StoreBrowserWindow(): hwnd = 1835148
- 17:34:58.531 DEBUG: BrowserEvents2::NavigateError()
- 17:34:58.531 DEBUG: BrowserWindow::DisplayHtmlString(): IWebBrowser2->get_Document() failed
- 17:34:58.609 DEBUG: DISPID_AMBIENT_DLCONTROL
- 17:34:58.609 DEBUG: DocHostUiHandler::GetOptionKeyPath(): registry path: Software\PHP Desktop\MSIE
- 17:34:58.719 DEBUG: Navigated to about:blank
- 17:35:04.938 DEBUG: RemoveBrowserWindow(): hwnd = 1835148
- 17:35:04.938 DEBUG: BrowserWindow::CloseBrowserControl()
- 17:35:04.969 INFO: Stopping Mongoose web server
- 17:35:04.984 DEBUG: Mongoose webserver stopped immediately
- 17:35:04.984 INFO: Ended application
- 17:35:04.984 INFO: --------------------------------------------------------

anthony...@gmail.com

unread,
Sep 7, 2014, 11:26:31 PM9/7/14
to phpde...@googlegroups.com
semi colon?

Czarek Tomczak

unread,
Sep 18, 2014, 3:26:32 AM9/18/14
to phpde...@googlegroups.com
Test PHP Desktop Chrome whether it works fine on that same machine.
Reply all
Reply to author
Forward
0 new messages