문제

I am working on a PHP install script, and I need to check many server settings before installing applications there.

So, how do I check the mysql database extension if it is enabled/disabled on client's server using PHP?

And I also need to check following extensions Encryption , Zip Archive whether they are installed on the server or not.

Please suggest a way to check these settings.

도움이 되었습니까?

해결책

Just execute this:

extension_loaded('mysql');

If it returns true, then the extension is loaded.

다른 팁

i think this will help you,

extension_loaded('zip')

check if the zip extension is loaded or not. this will check only one extension at a time..

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top