Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: PHP og SQLite, How does it work?< Next Oldest | Next Newest >
kristianholm Offline





Group: Members
Posts: 6
Joined: Dec. 2005
Posted: Jan. 14 2006,09:55 QUOTE

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
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Jan. 14 2006,14:44 QUOTE

Read this
Back to top
Profile PM WEB 
kristianholm Offline





Group: Members
Posts: 6
Joined: Dec. 2005
Posted: Jan. 14 2006,20:43 QUOTE

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.
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Jan. 14 2006,23:48 QUOTE

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
Back to top
Profile PM WEB 
kristianholm
Unregistered






Posted: Jan. 15 2006,18:32 QUOTE

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
Back to top
4 replies since Jan. 14 2006,09:55 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: PHP og SQLite

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code