mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
correcting example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@114904 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
7f332c3b50
commit
146b738de8
1 changed files with 10 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue