$php_path = Configure::get("php_binary"); echo "The path to the PHP binary is: " . $php_path;
$extension = "pdo_mysql"; if (Configure::checkExtension($extension)) { echo "$extension extension is loaded"; } else { echo "$extension extension is not loaded"; }
$env_var = "PATH"; $path = Configure::getenv($env_var); echo "The value of $env_var is: " . $path;This example retrieves the value of the PATH environment variable and prints it to the screen. Package library: This example code does not use any external package libraries.