SimBioT SimBioT - 1 year ago 106
PHP Question

How do I know if fastcgi_finish_request() is available?

Is there any approach like:

if (extension_loaded('apc') && ini_get('apc.enabled'))
echo "APC enabled!";


Answer Source

You can test with function_exists():

Checks the list of defined functions, both built-in (internal) and user-defined, for function_name […] Returns TRUE if function_name exists and is a function, FALSE otherwise.

Example usage:

if (function_exists('fastcgi_finish_request')) {
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download