previousPEAR::popExpect() (Previous) (Next) PEAR_Exceptionnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

PEAR::loadExtension()

PEAR::loadExtension() – Chargeur d'extension PHP indépendant du système d'exploitation

Synopsis

require_once 'PEAR.php';

boolean PEAR::loadExtension ( string $ext )

Description

Charge une extension par son nom

Parameter

string $ext

Le nom sensible à la casse de l'extension PHP sans le suffix du nom du fichier ou le prefix php_.

Return value

boolean - retourne TRUE, si l'extension a pu être chargée

Note

This function can be called statically.

Example

Chrgement de l'extension domxml

<?php
if(!PEAR::loadExtension("domxml")) {
  echo 
'Impossible de charger l\'extension DomXML !';
  exit();
}
?>
previousPEAR::popExpect() (Previous) (Next) PEAR_Exceptionnext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.