NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 34 35 36 37 38 … 93 Next »
Database

 
  • 0 Vote(s) - 0 Average
Database
r36283
Offline

Junior Member

Posts: 2
Threads: 1
Joined: Feb 2008
#1
2008-02-23, 07:37 PM
I decided to make some improvements to the web interface (although I think that it is pretty good - great job guys!!, just wanted to add a few features). Since the main language I know is php, I decided to write it in that.

Here are my questions -
The database gbpvr uses is SQLite...correct? Which is the gbpvr.db3 file in the directory correct?

That being said, I tried to connect to it with php and it acts like it is an invalid format. The warning is:
Warning: sqlite_open() [function.sqlite-open]: file is encrypted or is not a database in C:\Documents and Settings\Media\Desktop\Server\xampplite\htdocs\test.php on line 4

The code that I am using to connect to it (or at least the part that errors out) is:
$db = sqlite_open("gbpvr.db3");
(and just to cover something, I already made a copy of the gbpvr.db3 and put it in the correct folder)

Any ideas or suggestions would be really helpful - sorry if these questions have already been answers, I tried my best searching the forum, wiki, and google and didn't turn up too much that is helpful (and its my first post in here... so be gentle!!)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,823
Threads: 769
Joined: Nov 2003
#2
2008-02-23, 09:17 PM
Yes, gbpvr.db3 is the database file.

From that error message it sounds like the php library is built for a different version of sqlite.
r36283
Offline

Junior Member

Posts: 2
Threads: 1
Joined: Feb 2008
#3
2008-02-25, 10:42 PM
Just wanted to reply to my own problem with a solution (because I always hate when I find a forum with someone with the same exact problem as me but they don't post the solution - at most they just say thanks.. which doesn't help the rest of the world)

Although I am sure that I am not using the correct terminology - here is the solution.

Sub was right, it does have to do with versions. PHP has to be compiled with sqlite 3 pdo "enabled". I wasn't installing or compiling php but getting a pre-built package that includes apache, mysql, etc. called xampp. The problem was that they didn't have it setup right. The quick solution was to use a package called easyphp instead http://sourceforge.net/projects/quickeasyphp/ which has support for sqlite 3 already setup. The documentation on using the pdo for sqlite is found here http://us.php.net/manual/en/ref.pdo-sqlite.php

Thanks again for your help sub and I hope this little bit of information helps other people (not just people working on gbpvr stuff) out.

And keep up the great work with gbpvr everyone!!!!!
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,823
Threads: 769
Joined: Nov 2003
#4
2008-02-25, 11:37 PM
Thanks for posting the follow up.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Delete recordings from database but not from disk? spinnaker 8 4,130 2013-10-26, 10:51 PM
Last Post: spinnaker
  trying to fake npvr database for unit tests reven 3 2,393 2013-05-20, 08:53 AM
Last Post: reven
  Merged database queries mvallevand 4 2,294 2011-06-26, 09:56 PM
Last Post: mvallevand
  NPVR database questions mvallevand 25 10,519 2011-01-06, 12:58 AM
Last Post: jksmurf
  NPVR database - why so stringy with the fields?? :0) carpeVideo 4 2,233 2010-09-21, 01:48 AM
Last Post: sub
  NPVR Database connection ralphy 4 2,708 2010-09-15, 12:09 AM
Last Post: sub
  How can I reset the Music plugin's database? mkenyon2 1 2,039 2009-10-15, 06:43 PM
Last Post: psycik
  SheduleRecording() locks database cb123 3 2,718 2009-02-14, 06:33 PM
Last Post: sub
  accessing database fluffykeith 3 2,047 2008-07-09, 05:43 PM
Last Post: sub
  SQL database and backticks idkpmiller 6 4,386 2008-05-26, 08:32 AM
Last Post: idkpmiller

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode