Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 25th, 2007, 4:22 PM   #1
ssrun
Newbie
 
Join Date: Aug 2006
Posts: 20
Rep Power: 0 ssrun is on a distinguished road
Use PEAR DB or MySQL

Hi,

I'm just wondering from those who have used PHP and MySQL in production environments, which DB access method they used and why. Is one preferred over the other?

The book (Web Database Applications with PHP and MySQL, O'Reilly) I'm following seems to be using MySQL over the PEAR DB extension for the most part but they occassionally switch in their examples.
ssrun is offline   Reply With Quote
Old Apr 25th, 2007, 6:11 PM   #2
tAK
Programmer
 
Join Date: Mar 2007
Posts: 33
Rep Power: 0 tAK is on a distinguished road
Books from O'Reilly aim to teach, so it makes sense they would show you more than just one way.

Personally i think that the "average" web host (ie: the one everyone gets when they first start a website before they realise they shouldn't have cheaped out) is going to have the MySQL extensions enabled over the PEAR DB ones.

In the long run, just use whatever is most natural to you, that way you wont struggle to get it right, and the finished product will run a lot better.
tAK is offline   Reply With Quote
Old Apr 25th, 2007, 6:17 PM   #3
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
MySQL, just a personal preference.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Apr 25th, 2007, 7:09 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Pear DB isn't part of a MySQL/Pear DB choice. Pear DB is an abstraction layer that works with several DBs, MySQL included. I'm not totally convinced of the stability of Pear at this point, and I think you will find that Pear DB has been superseded by MDB2.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 26th, 2007, 6:45 AM   #5
pegasus001
Hobbyist Programmer
 
pegasus001's Avatar
 
Join Date: Nov 2006
Location: 163H
Posts: 213
Rep Power: 2 pegasus001 is on a distinguished road
I have recently been together with some friends learning together php from someone who is deep in the bussiness. In my opinion if you want to make money then most web pages use MySql so it is a kind of preriquisite of using the mysql, mysqli. If i am wrong on this one please correct me. When it comes to earning money i say, and my father taught me this : "if you can`t do what you like than like what you do". Hope this helps. Good Luck.
__________________
You never test the depth of a river with both feet.
The believer is happy. The doubter is wise.
Free speech carries with it some freedom to listen.
The next generation will always surpass the previous one. It`s one of the never ending cycles of life.
pegasus001 is offline   Reply With Quote
Old Apr 26th, 2007, 8:32 AM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I don't know what you said, but I respect your right to say it....
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 27th, 2007, 9:38 AM   #7
pegasus001
Hobbyist Programmer
 
pegasus001's Avatar
 
Join Date: Nov 2006
Location: 163H
Posts: 213
Rep Power: 2 pegasus001 is on a distinguished road
You are much much older than me so it is my duty to respect you although our opinions may vary. English is not my native english so i am sorry if what i wrote didnn`t make sense. Just forget it.
__________________
You never test the depth of a river with both feet.
The believer is happy. The doubter is wise.
Free speech carries with it some freedom to listen.
The next generation will always surpass the previous one. It`s one of the never ending cycles of life.
pegasus001 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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
Connecting MySQL and PHP titaniumdecoy PHP 10 Feb 25th, 2008 7:47 PM
MySQl simple problem paulchwd Other Web Development Languages 7 Feb 27th, 2007 10:31 AM
MySql paulchwd Other Web Development Languages 8 Feb 8th, 2007 9:17 PM
Tutorial - Using MySQL in C# Darkhack C# 12 Jan 17th, 2006 9:28 AM
Simple Perl / MySQL Problem.. pls help! domquemo Perl 0 Jan 11th, 2006 4:08 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:41 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC