correcting example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@114904 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Damien Seguy 2003-02-06 02:25:33 +00:00
parent 7f332c3b50
commit 146b738de8

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- $Revision: 1.9 $ -->
<!-- splitted from ./en/functions/info.xml, last change in rev 1.29 -->
<refentry id="function.dl">
<refnamediv>
@ -8,10 +8,10 @@
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>bool</type><methodname>dl</methodname>
<methodparam><type>string</type><parameter>library</parameter></methodparam>
</methodsynopsis>
<methodsynopsis>
<type>int</type><methodname>dl</methodname>
<methodparam><type>string</type><parameter>library</parameter></methodparam>
</methodsynopsis>
<para>
Loads the PHP extension given by the parameter
<parameter>library</parameter>. The <parameter>library</parameter>
@ -37,16 +37,18 @@
extensions and dynamically loaded ones (either through &php.ini;
or <function>dl</function>).
</para>
<para>
Example:
<example>
<title>Exemple avec <function>dl</function></title>
<programlisting role="php">
<![CDATA[
if (!extension_loaded('gd')) {
if (!dl('gd.so')) {
exit;
}
}
]]>
</programlisting>
</para>
</example>
<para>
The directory where the extension is loaded from depends on your
platform: