What is a good text file configuration format available for PHP and Perl?

This is more a matter of concept, rather than a coding problem that needs to be addressed. We have several scripts in both PHP and Perl.

The company has a large number of MySQL servers, each of which has a large set of different user / allowing combos.

I would like to create a central configuration file, perhaps as a text file that has a list of all the connection data. Each language should be able to read files and analyze them in a user-friendly format.

I would like to know some preferred method to implement it.

+3
source share
2

ini, xml, yaml json. Perl PHP.

+7
+1

Source: https://habr.com/ru/post/1775836/


All Articles