News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

IBM developerWorks:
Starting to use ODBC with PHP
May 25, 2011 @ 09:07:28

On IBM's developerWorks site there's a new tutorial that wants to help you get started with ODBC in PHP, using the iodbc libraries and extension for PHP to connect to a database and pull back results.

Let's look at how a typical Linux-Apache-PHP-MySQL (LAMP) environment can be transformed into this flexible Linux-Apache-PHP-ODBC (LAPO) environment. There are two general options for ODBC drivers on Linux: iODBC and unixODBC. Both sets of drivers have their own pros and cons, and both work with PHP, but they work with different sets of databases. My choice is iODBC because of its traditionally strong connection to web programming languages like PHP and Ruby, as well as its stability in working with ODBC-friendly databases like MySQL and OpenLink Virtuoso.

There's a few steps in there to help you get the needed tools installed (linux server) to make the connection. Snippets of code are included showing how to connect to the server, run some simple SQL statements, fetch returned row information and do some basic debugging of the connection.

0 comments voice your opinion now!
odbc tutorial database iodbc install


blog comments powered by Disqus

Similar Posts

TheWebSqueeze.com: PHP5 Abstraction for the Rest of Us

Zend Developer Zone: A PHP 'Hello World' Script Using Zend Core for i5

Zoe Slattery's Blog: So phar so good

Padraic Brady's Blog: Zend Framework Caching (Parts 1, 2 & 2b)

php|architect: Bing Powered 404 for non-WordPress websites


Community Events











Don't see your event here?
Let us know!


security application podcast overview package facebook symfony2 hack unittest threedevsandamaybe introduction composer opinion framework component code release hhvm install language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework