$x = sql_version(); echo $x; // depending on the type of server, we might see: // for MySQL: 5.1.37-1ubuntu5.1 // for SQLite2: 2.8.17 // for SQLite3: 3.6.16