Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 18th October 2009, 01:10 PM
redarrow Offline
Registered User
 
Join Date: Oct 2009
Location: South Africa
Posts: 2
linuxfedorafirefox
Question Fedora 11, PHP & Sqlite - how to enable?

I'm trying to use sqlite with php on my Fedora 11 box.

Sqlite is supposed to be built into PHP5, but it seems that this is disabled in the Fedora build? (according to phpinfo)
I thought there might be a separate package I need to install or something, but I cannot find any references to it.

Any ideas how I would get it working?

Thanks
Reply With Quote
  #2  
Old 18th October 2009, 03:04 PM
adrianx's Avatar
adrianx Offline
Registered User
 
Join Date: Jul 2007
Location: South Africa
Posts: 953
linuxfedorafirefox
Hi,

Are you using PDO? That seems to work for me (out of the box).
Code:
$dbh = new PDO('sqlite:/path/to/mydatabase.sqlite'); ...
There is a package called php-pdo, but I can't remember actually having had to install it myself.

Edit: I'm talking about sqlite3, which is default in Fedora 11.
__________________
Registered Linux User 460110

Last edited by adrianx; 18th October 2009 at 03:17 PM.
Reply With Quote
  #3  
Old 18th October 2009, 04:27 PM
redarrow Offline
Registered User
 
Join Date: Oct 2009
Location: South Africa
Posts: 2
linuxfedorafirefox
Quote:
Originally Posted by adrianx View Post
Are you using PDO? That seems to work for me (out of the box).
Code:
$dbh = new PDO('sqlite:/path/to/mydatabase.sqlite'); ...
There is a package called php-pdo,
Nope, I was just trying the sqlite stuff (supposedly) built into php5 ..
I'll look into that though, thanks.

Or maybe I'll just stick to mysql..
Reply With Quote
Reply

Tags
enable, fedora, php, sqlite

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Core 9 (FC9) Yum download primary.sqlite.bz2 problem BardiaN Installation and Live Media 3 17th April 2009 02:22 PM
how to enable sqlite on my server arjo Servers & Networking 2 18th March 2009 11:53 AM
ugh, Fedora 7 hangs before login and Yum SQlite error ahvi Using Fedora 1 7th June 2007 07:23 PM


Current GMT-time: 02:03 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat