PHP og SQLite


Forum: Other Help Topics
Topic: PHP og SQLite
started by: kristianholm

Posted by kristianholm on Jan. 14 2006,09:55
I was just wondering if the php-4-monkey-0.9.1.tar.gz workes with SQLite?
I just got strange error-messages, but I am relative new to PHP.

Do anyone know if the php-4-monkey-0.9.1.tar.gz reads/writes/query/  or do I have to install PHP5x?

And do you know a good tutorial with PHP and SQLite?

Kristian

Posted by roberts on Jan. 14 2006,14:44
Read < this >
Posted by kristianholm on Jan. 14 2006,20:43
I tried out the eksample you posted,
but I just get the error message:
Parse error: parse error, unexpected T_VARIABLE in /path/.. on line 8.

Line 8 is: $db = /home/dsl/db

What can I have done wrong?

I am sorry if this is a topic that isn't discussed in this forum, but I can't seem to find help anywhere else. When people hear I use DSL nobody seems to want/can't help me..

Kristian

PS: feel free to redirect me to another forum if there you know one that deals with the topic.

Posted by roberts on Jan. 14 2006,23:48
Ah, I think you are missing a semicolon

In that old thread the first example I posted was missing a semicolon after the require

require sqlite;

The second example that I posted works fine and includes the semicolon

HTH

Posted by kristianholm on Jan. 15 2006,18:32
Yes, I did miss the semicolon.

Now it works just fine  :)

Thank you very much!


I found a online tutorial on SQLite support in PHP 5,
but since you wrote the sqlite.php-script yourself
I guess I can't use those commands?


krisitan

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.