Checking for installed PHP extentions [solved]
Posted: Mon May 09, 2005 12:33 am
Is it possible to check for installed PHP extentions? I would like to check to see if the mysql or mysqli extensions are installed. Thanks.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<? phpinfo(); ?>Code: Select all
<?php
if (!function_exists('mysql_connect'))
{
echo "mysql extension is not loaded.";
}
if (!function_exists('mysqli_connect'))
{
echo "mysqli extension is not loaded.";
}
?>