开发者

PHP analog to ASP.NET's web.config

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜