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() – Carga extensiones de PHP independientemente del SO

Synopsis

require_once 'PEAR.php';

boolean PEAR::loadExtension ( string $ext )

Description

Carga una extensión por su nombre

Parameter

string $ext

El nombre sensible a mayúsculas de la extensión de PHP sin el sufijo del nombre del archivo o el prefijo php_.

Return value

boolean - devuelve TRUE, si la extensión pudo cargarse

Note

This function can be called statically.

Example

Cargando la extensión domxml

<?php
if(!PEAR::loadExtension("domxml")) {
 echo 
'Could not load DomXML-Extension!';
 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.