nuovvo / phpdesktop

Automatically exported from code.google.com/p/phpdesktop
0 stars 0 forks source link

Resolve environment variables in paths in settings.json #103

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 26 Apr 2014 at 12:23

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 9 Aug 2014 at 6:23

GoogleCodeExporter commented 9 years ago
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 czarek.t...@gmail.com on 9 Aug 2014 at 6:26

GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 21 Oct 2014 at 10:39

GoogleCodeExporter commented 9 years ago
Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/phpdesktop/issues/103

Original comment by czarek.t...@gmail.com on 24 Aug 2015 at 3:29