File: configure.xml

package info (click to toggle)
php-doc 20081024-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 57,752 kB
  • ctags: 3,858
  • sloc: xml: 686,554; php: 19,446; perl: 610; cpp: 500; makefile: 336; sh: 114; awk: 28
file content (74 lines) | stat: -rw-r--r-- 2,870 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.11 $ -->
<section xml:id="mysqli.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
 &reftitle.install;
 <para xml:id="mysqli.configure">
  To install the mysqli extension for PHP, use the 
  <option role="configure">--with-mysqli=mysql_config_path/mysql_config</option>
  configuration option where <literal>mysql_config_path</literal> represents
  the location of the <literal>mysql_config</literal> program that comes
  with MySQL versions greater than 4.1.  
 </para>

 <para>
  If you would like to install the mysql extension along with the mysqli extension
  you have to use the same client library to avoid any conflicts.
 </para>

 <section xml:id="mysqli.installation.windows">
  <title>Installation on Windows Systems</title>
  <para>
   MySQLi is not enabled by default, so the
   <filename>php_mysqli.dll</filename> DLL must be enabled inside of
   &php.ini;. Also, PHP needs access to the MySQL client library. A file
   named <filename>libmysql.dll</filename> is included in the Windows PHP
   distribution and in order for PHP to talk to MySQL this file needs to be
   available to the Windows systems <envar>PATH</envar>. See the FAQ
   titled "<link linkend="faq.installation.addtopath">How do I add my PHP
   directory to the PATH on Windows</link>" for information on how to do
   this. Although copying <filename>libmysql.dll</filename> to the Windows
   system directory also works (because the system directory is by default in
   the system's <envar>PATH</envar>), it's not recommended.
  </para>
  <para>
   As with enabling any PHP extension (such as
   <filename>php_mysqli.dll</filename>), the PHP directive
   <link linkend="ini.extension-dir">extension_dir</link> should be set to
   the directory where the PHP extensions are located. See also the
   <link linkend="install.windows.manual">Manual Windows Installation
   Instructions</link>. An example extension_dir value for PHP 5 is
   <literal>c:\php\ext</literal>
  </para>
  <note>
   <para>
    If when starting the web server an error similar to the following occurs:
    <literal>"Unable to load dynamic library './php_mysqli.dll'"</literal>,
    this is because <filename>php_mysqli.dll</filename> and/or
    <filename>libmysql.dll</filename> cannot be found by the system.
   </para>
  </note>
 </section>

</section>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->