我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

用于PHP的Apache配置解析器

I am looking for some PHP utility that parses Apache configuration files similar to this Perl's module: http://metacpan.org/pod/Apache::ConfigParser

Any clues?

PEAR::Config supports Apache-style config files.
Have a look at the manual http://pear.php.net/manual/en/package.configuration.config.avail-container.apache.php

$conf = new Config();
$root = $conf->parseConfig("/etc/apache2/httpd.conf", "apache");
print current($root->getItem('directive', 'Listen'))->content;

Or something like that..

近期文章

  • 共享主机中的安全性[关闭]
  • Wordpress短代码无效
  • 使用PHP调用netsh命令
  • 表格信息不发布
  • 关于preg_match的基本内容
  • 光标在悬停时不会改变
  • PHP MySQL语法引用点[重复]
  • PHP - 在后台运行脚本
  • 在PHP中由Hue排序颜色
  • PHP图像上传不起作用
  • PHP While循环跳过代码
  • IE的CSS对齐问题[关闭]
  • mysql换行符格式化
  • 如何从远程网址获取HTML?
  • Laravel。 q错误参数
  • PHP SOAPClient请求问题
  • 树类结构?
  • 删除字符串中的子引号
  • 添加一个wordpress活动类
  • I'Fatal错误:找不到类

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华