Tutorial Category

MySQL

  1. PHP Data Objects

    By Priyanka Bansal tagged in data,Objects,PDO,php,PHP Data,PHP Data Objects,PHP Objects
    PHP Data Objects (PDO) PHP Data Objects, also known as PDO, is an interface for accessing databases in PHP/aithout tying code to a specific database. Rather than directly calling mysql_, mysqli_, and pg_ functions, developers can use the PDO interface, simplifying the porting of applications to other databases. Database Support The extension can support any database that a PDO driver has been written for. At the time of this writing, the following database drivers are available: PDO_DBLIB ( FreeTDS / Microsoft SQL Server...
  2. How To Compile PHP On CentOS 5 (64Bit) With MySQL Support

    If you try to build PHP 5.x.x on a 64bit CentOS install you may get this error: checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock checking for mysql_close in -lmysqlclient... no checking for mysql_error in -lmysqlclient... no configure: error: mysql configure failed. Please check config.log for more information. Looking further into the config.log you will also see: configure:60376: checking for mysql_error in -lmysqlclient configure:60395: gcc -o conftest -I/usr/include -g -O2  -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql -L/usr/lib  -Wl,-rpath,/usr/kerberos/lib64 -L/usr/kerberos/lib64 -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient  -lz -lpng -lz -lcurl...