I will be nice to have PHP_INI_SCAN_DIR environment variable defined with uniserver this will allow us to keep our custom php settings separate also user will not be needed to change all ini files which he/she uses while devlopment
Add PHP_INI_SCAN_DIR environment variable
Posted 11 October 2014 - 06:47 AM
The above is possible however its lacking in detail. How do you see this working?
What about PHP switching how will it interface (where to place folder containing the addition ini files)
An interim solution is to start UniController.exe with a batch files and set the environment variable accordingly. The following example is portable and would be specific to the selected PHP version:
1 Create a new folder for example user_php_inis in folder UniServerZ containing all additional ini files.
2 In folder UniServerZ create the following batch file ini_run.bat
@echo off pushd %~dp0 set PHP_INI_SCAN_DIR=%cd%\user_php_inis Start UniController.exe popd
Run the above batch file, this sets the environment variable to folder user_php_inis and then runs UniController.exe
Note: Additional environment variable support added starting from Uniform Server 11.4.0-ZeroXI
All the best
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users