Amended examples: Wrap filename in double quotes to protect filenames with spaces.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304598 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Richard Quadling 2010-10-21 19:17:55 +00:00
parent f4544fe476
commit b47b285d95
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ win32_create_service(array(
'service' => 'dummyphp', # the name of your service
'display' => 'sample dummy PHP service', # short description
'description' => 'This is a dummy Windows service created using PHP.', # long description
'params' => __FILE__ . ' run', # path to the script and parameters
'params' => '"' . __FILE__ . '" run', # path to the script and parameters
));
?>
]]>

View file

@ -189,7 +189,7 @@ $x = win32_create_service(array(
'service' => 'dummyphp', # the name of your service
'display' => 'sample dummy PHP service', # short description
'description' => 'This is a dummy Windows service created using PHP.', # long description
'params' => __FILE__ . ' run', # path to the script and parameters
'params' => '"' . __FILE__ . '" run', # path to the script and parameters
));
debug_zval_dump($x);
?>