dongzou1964 2019-04-14 14:53
浏览 37

PHP扩展Zend C ++中的服务器根位置

I have a PHP profiler developed using C++ in Centos. My profiler extension (.so file) will get attached to the "httpd" process and will receive Zend call backs.

Each and every PHP web requests will pass thru my PHP extension and get profiled. Here is there any possibility to get the Server Root in which the Web requests are being handled.?

Somehow i need to get the Server's(here it is Apache) root folder (eg. /etc/httpd) from the profiler extension. I need to access the server log location (eg. /etc/httpd/logs) by getting the server installed directory.

Tried getting from ini_get() function but couldn't do.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
    • ¥15 linux驱动,linux应用,多线程
    • ¥20 我要一个分身加定位两个功能的安卓app
    • ¥15 基于FOC驱动器,如何实现卡丁车下坡无阻力的遛坡的效果
    • ¥15 IAR程序莫名变量多重定义
    • ¥15 (标签-UDP|关键词-client)
    • ¥15 关于库卡officelite无法与虚拟机通讯的问题
    • ¥15 目标检测项目无法读取视频
    • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
    • ¥100 求采集电商背景音乐的方法