1. Use phpinfo() and scroll down to “Loaded Modules”
2. Run this script.
<?php
$extension = ‘mysql‘;//any module, curl etc
if (extension_loaded(“$extension”)) {
echo “$extension”.’ is loaded’;
} else {
echo “$extension”.’ was not found’;
};
?>
3. php -m will show all loaded modules
2. Run this script.
<?php
$extension = ‘mysql‘;//any module, curl etc
if (extension_loaded(“$extension”)) {
echo “$extension”.’ is loaded’;
} else {
echo “$extension”.’ was not found’;
};
?>
3. php -m will show all loaded modules
Комментариев нет:
Отправить комментарий