This article describes how to use the function_exists() function to determine whether or not a function is available for your PHP installation.
You can determine whether or not a PHP function is enabled for your web site by using the function_exists() function.
To determine if a function is available:
<?php $function_name = "fsockopen"; if ( function_exists($function_name) ) { echo "$function_name is enabled"; } else { echo "$function_name is not enabled"; } ?>
For more information about the function_exists() function, please visit http://us3.php.net/manual/en/function.function-exists.php.
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.