Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve environment variables in paths in settings.json #103

Open
GoogleCodeExporter opened this issue Oct 11, 2015 · 5 comments
Open

Resolve environment variables in paths in settings.json #103

GoogleCodeExporter opened this issue Oct 11, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

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 sylvainr...@gmail.com on 26 Apr 2014 at 12:08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant