Override the standard php.ini

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Override the standard php.ini

Postby torvista » 24. October 2019 15:10

Hi,
I update xampp very often and have to copy my customisations every time.

Is there a way to leave the distribution php.ini alone but include or use the values I wish to modify in a separate file, so I only need to copy that one each time?

thanks
Settve
torvista
 
Posts: 12
Joined: 27. July 2009 04:15

Re: Override the standard php.ini

Postby Altrea » 24. October 2019 16:24

Hi,

Ini files do not support a functionality like including user defined ini files into the main one, like the Apache conf does.
If PHP is running in CGI mode you could have used .user.ini files which can be used per directory. For PHP running in Apache module mode (like XAMPP does) the recommend way would be overriding values with help of .htaccess files or php files.

Best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 9901
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Override the standard php.ini

Postby torvista » 24. October 2019 16:35

Great,
thanks for the rapid reply.
torvista
 
Posts: 12
Joined: 27. July 2009 04:15


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 43 guests