Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

#30955 [Opn]: PATCH: setting TEMP so SQLite will work on Windows
ID:               30955
Updated by:       mez@php.net
Reported By:      danielc at analysisandsolutions dot com
Status:           Open
Bug Type:         Documentation problem
Operating System: Windows
PHP Version:      Irrelevant
New Comment:

Isn't this more a SQLLite problem than a documentation problem/PHP
Problem?


Previous Comments:
------------------------------------------------------------------------

[2004-12-02 22:47:46] danielc at analysisandsolutions dot com

I'm talking about Windows 2000 Pro and XP Pro.

TEMP _might_ be set if the web server is running under the SYSTEM
account.  But if the web server service is running under an unprivilged
user account TEMP isn't automatically available.

If TEMP isn't set, the sqlite extension goes to write the temporary
files into the windows directory.  Not a good idea.

------------------------------------------------------------------------

[2004-12-02 18:59:53] nlopess@php.net

But windows *always* set the TEMP var by default, doesn't it?
I never had such problems on windows...

To which version of windows are you refering to? Windows 9x?

------------------------------------------------------------------------

[2004-12-02 02:45:47] danielc at analysisandsolutions dot com

Description:
------------
If the TEMP environment variable isn't set and the computer in question
has some semblance of security, the following error comes up:
malformed database schema -
unable to open a temporary database file for storing temporary
tables

This is a common problem that has been asked in various forums.

Here is a documentation patch to explain what needs to be done in order
to get SQLite to work on secure Windows machines:
http://www.analysisandsolutions.com/php/sqlitetemp.diff

Thanks.



------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=30955&edit=1

Report this thread to moderator Post Follow-up to this message
Old Post
mez@php.net
12-30-04 01:56 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Documentation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:00 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.