function uzyj_rozszerzenia($rozszerzenie) { 
   if (!extension_loaded('$rozszerzenie')) { 
      if (PHP_SHLIB_SUFFIX == 'dll') { 
         dl('php_$rozszerzenie.dll'); 
      } else { 
         dl('$rozszerzenie.' . PHP_SHLIB_SUFFIX); 
      } 
   } 
} 
uzyj_rozszerzenia("imap");
