如何将 Fat Free 框架与 Oracle 数据库一起使用

How to using Fat Free framework with Oracle Database

如何使用Fat Free Framework连接到oracle(11g express edition)数据库? 目前我正在使用这个配置(config.ini):

db_dns=oci:host=localhost;port=1521;dbname=
db_name=xe
db_user=username
db_pass=password

但它不起作用。错误说:

Internal Server Error.
could not find driver

但是我已经安装了驱动程序(oci8)

如何从该配置构建连接字符串?试试这个:

$db=new \DB\SQL('oci:dbname=//localhost:1521/xe','username','password');

来自http://www.php.net/manual/en/ref.pdo-oci.connection.php