开发者

PHP analog to ASP.NET's web.config

开发者 https://www.devze.com 2023-02-07 02:42 出处:网络
Which is the best, official and/or \"blessed\" way to implement something akin to ASP.NET\'s web.config in PHP开发者_Go百科? Take into consideration that these configuration file(s) will have to be re

Which is the best, official and/or "blessed" way to implement something akin to ASP.NET's web.config in PHP开发者_Go百科? Take into consideration that these configuration file(s) will have to be read by several PHP files located in possibly different folders.


If you're interested in parsing configuration files, there is a Zend Framework class called Zend_Config that will handle the translation of INI, XML, Yaml or JSON files into an associative array for your application.

Like many Zend Framework classes, it works by itself, so you can use it without having to adopt the whole framework.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号