Include the Splunk AppDynamics API Header

You should include the appdynamics_api_header.php file in your application to ensure that it works correctly if the agent is uninstalled or temporarily disabled. This file contains empty API functions that will prevent the application from throwing errors if the agent is not present.

The appdynamics_api_header.php file is located in the PHP Agent package in the same directory as the install.sh script.

To include the header file:

  1. Copy appdynamics_api_header.php to where you keep the header files for the monitored application.
  2. Make sure that appdynamics_api_header.php is in your include path.
  3. Then add the following to your script:
    require 'appdynamics_api_header.php';