How to check which PHP extensions have been enabled/disabled in Ubuntu Linux 12.04 LTS?

前端 未结 6 503
借酒劲吻你
借酒劲吻你 2020-12-07 10:36

I\'m using Ubuntu Linux 12.04 LTS on my local machine. I\'ve installed LAMP long ago on my machine. Now I want to enable following PHP extensions:

  1. php_zip
6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 11:31

    To check if this extensions are enabled or not, you can create a php file i.e. info.php and write the following code there:

    ';
    echo "XML: ", extension_loaded('xml') ? 'OK' : 'MISSING', '
    '; echo "zip: ", extension_loaded('zip') ? 'OK' : 'MISSING', '
    '; ?>

    That's it.

提交回复
热议问题