Skip to content

Resolve environment variables in paths in settings.json #103

Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
1. I use MSIE browser. I installed PHP Desktop in the "Program Files 
(x86)\MyApp" directory on a Windows 7 computer granting the write and modify 
access of this directory to Administrator only. I installed my web application 
in the C:\Users\%username%\AppData\Local\MyApp directory. 
2. I set "www_directory" parameter in the settings.json file with the 
%username% variable. 
3. I got an 404 HTTP Error page in the browser.


When I look in the console messages, it seems that PHP Desktop or Mongoose 
doesn't resolve the %username% variable because the variable name is written in 
clear.

I use phpdesktop-msie-1.13-php-5.4.24.zip file with Windows 7 Home 64 bits.


It appears that ExpandEnvironmentStrings() Windows API function should be used 
to expand all path strings from the settings.json file.

Original issue reported on code.google.com by [email protected] on 26 Apr 2014 at 12:08

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions