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 Aug 18, 2015 · 4 comments
Open

Resolve environment variables in paths in settings.json #103

GoogleCodeExporter opened this issue Aug 18, 2015 · 4 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 [email protected] on 26 Apr 2014 at 12:08

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 26 Apr 2014 at 12:23

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 9 Aug 2014 at 6:23

  • Changed title: Resolve environment variables in paths in settings.json

@GoogleCodeExporter
Copy link
Author

Could you explain your usage? How does your installer work? How about when new 
user in Windows is created, how do you handle creation of a new www_directory 
for that user?

Original comment by [email protected] on 9 Aug 2014 at 6:26

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 21 Oct 2014 at 10:39

  • Added labels: Restrict-AddIssueComment-Commit

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