Friday, March 28, 2008

Vanilla PHP

PHP is a great general scripting language. For instance, I have a little data conversion script that takes data from our MSSQL database and insert them into our MySQL database.

The problem is that you'll have to custom compile PHP if we want support to 2 different databases... and it's not that easy, so here are the configure options to bring up a vanilla php installation, with no other support other than connection to a couple of databases:

./configure --with-mssql --with-mysql --disable-libxml --disable-dom --disable-simplexml --disable-xml --disable-xmlreader --disable-xmlwriter --without-pear

Make sure you also installed the freetds-dev and the libmysqlclient-dev packages.

No comments: