File: setup.xml

package info (click to toggle)
php-doc 20100521-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 59,992 kB
  • ctags: 4,085
  • sloc: xml: 796,833; php: 21,338; cpp: 500; sh: 117; makefile: 58; awk: 28
file content (138 lines) | stat: -rw-r--r-- 4,221 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 288721 $ -->

<chapter xml:id="sqlite.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
 &reftitle.setup;

 <!-- {{{ Requirements -->
 <section xml:id="sqlite.requirements">
  &reftitle.required;
  <para>
   The SQLite extension is enabled by default as of PHP 5. Before that
   time the SQLite library is needed.
  </para>
 </section>
 <!-- }}} -->

 <!-- {{{ Installation -->
 <section xml:id="sqlite.installation">
  &reftitle.install;
  <para>
   As of PHP 5 this extension is enabled by default, so simply do not 
   disable it and it'll be available. 
  </para>
  <caution>
   <para>
    Do not use the PECL version of this extension, as it is 
    unmaintained. Always use the SQLite extension that comes with
    the PHP sources even while compiling as shared. In this case
    the sources are in <literal>php-src-dir/ext/sqlite</literal>
    and the <link linkend="install.pecl.phpize">phpize</link>
    method of building applies.
   </para>
  </caution>
  <para>
   Windows users must enable <filename>php_sqlite.dll</filename> inside
   of &php.ini; in order to use these functions.
   &pecl.windows.download;
  </para>
  <para>
   Windows builds must also enable PDO because as of PHP 5.1.0 it depends
   on it. So, &php.ini; will end up with something like this:
   <informalexample>
    <programlisting role="ini">
<![CDATA[
extension=php_pdo.dll
extension=php_sqlite.dll
]]>
    </programlisting>
   </informalexample>
   On Linux or Unix operating systems, if you build PDO as a shared
   extension, you must build SQLite as a shared extension using the
   <command>--with-sqlite=shared</command> configure option.
  </para>
  <para>
   The PHP 5.0.x series of Windows builds enabled this extension by
   default, where no <acronym>DLL</acronym> file is necessary.
  </para>
  <para>
   SQLite 3 is supported through <link
   linkend="ref.pdo-sqlite">PDO SQLite</link>.
  </para>
  <note>
   <title>Windows installation for unprivileged accounts</title>
   <para>
    On Windows operating systems, unprivileged accounts don't have the
    <varname>TMP</varname> environment variable set by default. This will
    make sqlite create temporary files in the windows directory, which is
    not desirable. So, you should set the <varname>TMP</varname> environment
    variable for the web server or the user account the web server is
    running under. If Apache is your web server, you can accomplish this via
    a <command>SetEnv</command> directive in your &httpd.conf; file. For
    example:
    <informalexample>
     <programlisting role="apache-conf">
<![CDATA[
SetEnv TMP c:/temp
]]>
     </programlisting>
    </informalexample>
    If you are unable to establish this setting at the server
    level, you can implement the setting in your script:
    <informalexample>
     <programlisting role="php">
<![CDATA[
putenv('TMP=C:/temp');
]]>
     </programlisting>
    </informalexample>
    The setting must refer to a directory that the web server
    has permission to create files in and subsequently write
    to and delete the files it created.
    Otherwise, you may receive the following error message:
    <computeroutput>
     malformed database schema -
     unable to open a temporary database file for storing temporary tables
    </computeroutput>
   </para>
  </note>
 </section>
 <!-- }}} -->

 <!-- {{{ Configuration -->
 &reference.sqlite.ini;
 <!-- }}} -->

 <!-- {{{ Resources -->
 <section xml:id="sqlite.resources">
  &reftitle.resources;
  <para>
   There are two resources used in the SQLite Interface. The first one is the
   database connection, the second one the result set. 
  </para>
 </section>
 <!-- }}} -->

</chapter>

<!-- 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:"~/.phpdoc/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
-->