Frage

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.

War es hilfreich?

Lösung

Just execute this:

extension_loaded('mysql');

If it returns true, then the extension is loaded.

Andere Tipps

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..

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top