#29477 [Fbk->NoF]: Apache & CGI crash on insert query
ID: 29477
Updated by: php-bugs@lists.php.net
Reported By: phprazor at dap dot ro
-Status: Feedback
+Status: No Feedback
Bug Type: SQLite related
Operating System: Windows XP
PHP Version: 5CVS-2004-08-01 (dev)
New Comment:
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2005-02-15 00:26:26] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
------------------------------------------------------------------------
[2004-08-01 02:59:57] phprazor at dap dot ro
Description:
------------
I used IIS 5.0 with the CGI version of php5 and I was getting a "CGI
has encountered an error..." . I read about other bugs with SQLite and
some users were suggesting the use of Apache. So i switched from the
CGI version of php running with IIS to running it as a module with
Apache 2.0. when i run the code, it tells gives me an "Apache has
encountered an error..." dialog.
I'm trying to create a script to process a registration form. It would
take the data, an store it in an SQLite database. I tried commenting
out the INSERT query and i get no error. It seems the INSERT Query is
the problem. A SELECT query workd fine. Can someone help?
Reproduce code:
---------------
<?php
if (isset($_POST["username"])) {
$db = sqlite_open("db/db.chat");
sqlite_query("INSERT INTO users VALUES(NULL, ".$_POST['username'].",
".$_POST['password'].")",$db);
echo "done.";
}
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29477&edit=1
Thread (3 messages)