note 71805 deleted from function.get-loaded-extensions by nlopess
| From: | nlopess@php.net | Date: | Sun, 17 Dec 2006 19:11:42 +0000 |
| Subject: | note 71805 deleted from function.get-loaded-extensions by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-120673@lists.php.net to get a copy of this message | ||
Note Submitter: nospam at blog dot fileville dot net
----
There is a much simpler way to see if an extension is loaded, by using the extension_loaded()
function.
Here is a simpler way of checking if zip is enabled:
<?php
if(extension_loaded('zip')) {
$zip_ok = 1;
} else {
$zip_ok = 0;
}
?>