The best way to check if IonCube Loader is installed


I'm using the following code:

if(extension_loaded("IonCube Loader")) {
  // Yes
else {
  // No

I'm just concerned that this won't work across every server with IonCube enabled. It seems pretty standard, but I've never needed to check before. Is this the best way to check, or is there a better method I should be using?

If the extension is not installed this will return you false, so as far as I know it is the correct way to check if an extension is available to use.

Another option is to use get_loaded_extensions(). This returns you an array with available extension names. You could check if this arrays contains your desired extension.