Jump to content
The Uniform Server Community
Sign in to follow this  
darknight1601

Add PHP_INI_SCAN_DIR environment variable

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Ric

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...