-
-
Notifications
You must be signed in to change notification settings - Fork 576
Command line arguments
This page describes command line arguments that can be passed to phpdesktop executable.
Table of Contents generated with DocToc
You can pass many of Chrome command line switches to phpdesktop-chrome.exe, see: http://peter.sh/experiments/chromium-command-line-switches/
See also "command_line_switches" option on the Chrome settings wiki page.
Wth this argument you can pass custom environment variables to PHP. These variables will be appended to the $_ENV
array. See example:
phpdesktop-chrome.exe --cgi-environment="SOME=1,ABC=2"
Now if you do print_r($_ENV)
in a php script you should see:
Array
(
[SERVER_NAME] => 127.0.0.1
..
[SOME] => 1
[ABC] => 2
)
You can overwrite arbitrary environment variables like SERVER_NAME
or any other.
What is this feature needed for? For example, you can launch an another phpdesktop app window from an existing app, and pass custom parameters so that you can differentiate both app launches. You can mix it with passing of Chrome switches to achieve various functionality.