mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
fix #30955: TMP windows envar. based on patch by danielc at analysisandsolutions dot com
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@179843 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
ce6718ec07
commit
5c5aa0d593
1 changed files with 38 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.14 $ -->
|
||||
<!-- $Revision: 1.15 $ -->
|
||||
<reference id="ref.sqlite">
|
||||
<title>SQLite Functions</title>
|
||||
<titleabbrev>SQLite</titleabbrev>
|
||||
|
@ -42,6 +42,43 @@
|
|||
In PHP 5, the SQLite extension and the engine itself are bundled and
|
||||
compiled by default.
|
||||
</para>
|
||||
<note>
|
||||
<title>Windows installation for unprivilged accounts</title>
|
||||
<para>
|
||||
On Windows operating systems, unprivilged accounts doesn't have the
|
||||
<varname>TMP</varname> environment variable set by default. This will
|
||||
make sqlite create temporary files in the windows directory, which isn't
|
||||
good. 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>
|
||||
<section id="sqlite.requirements">
|
||||
&reftitle.required;
|
||||
|
|
Loading…
Reference in a new issue