Page 1 of 1

PHP PEAR 5 including MDB2_driver_mysql, Mail and Mail_Mime

Posted: Wed Dec 10, 2008 1:38 pm
by CyberJet
Greetings to All,


I need to install this: PHP PEAR 5 including MDB2_driver_mysql, Mail and Mail_Mime. Is there a package in FC9 that contains this.

Please help me understand the differences between:

php-pear-MDB2-Driver-mysql-1.4.1-3.fc9.src.rpm
php-pear-MDB2-Driver-mysqli-1.4.1-3.fc9.src.rpm

Thanks in Advance,

Ramon

Re: PHP PEAR 5 including MDB2_driver_mysql, Mail and Mail_Mime

Posted: Wed Dec 10, 2008 7:04 pm
by Chris Corbyn
Just install the standard PHP and get the rest via the pear command. PEAR is a package repository in itself so you can do things like "pear install <package>" to download and install the files to your include_path.

MySQL and MySQLi both interface with MySQL, but MySQLi makes use of more API feature such as parameter binding. If you're just starting out I'd strongly advise using PDO (or ADODB if you're already familiar with that) over either of these two since they offer a certain amount of abstraction when it comes to alternate DB drivers. PDO is not an abstraction layer in terms of processing SQL, but it is an abstraction in terms of the API used to execute queries against the backend database (which is a good thing).

Re: PHP PEAR 5 including MDB2_driver_mysql, Mail and Mail_Mime

Posted: Mon Dec 15, 2008 12:03 pm
by CyberJet
Thanks! I'm new to this. I need to install these programs because they are a requirement for HylaFAX server and I'm trying to learn in the process.

Kind Regards,

Ramon