我正在使用 Win 7、Apache 2.2 和 PHP 5.4.4。我想将学说库和 PDO 添加到我的本地服务器。
- PHP安装路径:
C:\php\
- 教义库路径:
C:\php\extras\doctrine-dbal
- PDO 驱动程序路径:
C:\php\ext
- Apache2.2路径:
C:\Apache
php.ini
; Windows: "\path1;\path2"
include_path = ".;C:\php\extras;C:\php\extras\doctrine-dbal"
extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
extension=php_pdo_odbc.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
extension=php_pgsql.dll
phpinfo() 图片
网络应用程序给出以下错误
Warning: require_once(Doctrine/Common/ClassLoader.php): failed to open stream: No such file or directory in C:\Apache\htdocs\stack\UMS\classes\class.dbextractor.php on line 2
Fatal error: require_once(): Failed opening required 'Doctrine/Common/ClassLoader.php' (include_path='.;C:\php\pear') in C:\Apache\htdocs\stack\UMS\classes\class.dbextractor.php on line 2
如何在 php.ini 文件中更改学说和 PDO 驱动程序的包含路径