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.