English 中文(简体)
pear DB 错误: 扩展名未在窗口 7 apache 服务器中找到 sql 服务器
原标题:pear DB Error: extension not found sql server in windows 7 apache server

pear DB 错误: 扩展名未在窗口 7 apache 服务器中找到 sql 服务器

hi all, I face some problem 在连接 sql 服务器和 梨子 DB 时, 我遇到了一些问题 。

{\fn华文楷体\fs16\1cHE0E0E0}我已经有了 {\fn华文楷体\fs16\1cHE0E0E0}

  1. Archive_Tar 1.3.10 stable
  2. Console_Getopt 1.3.1 stable
  3. DB 1.7.14 stable
  4. HTTP_Request 1.4.4 stable
  5. MDB2 2.5.0b3 beta
  6. MDB2_Driver_mysql 1.5.0b3 beta
  7. MDB2_Driver_mysqli 1.5.0b3 beta
  8. MDB2_Driver_sqlsrv 1.5.0b3 beta
  9. Net_Socket 1.0.10 stable
  10. Net_URL 1.0.15 stable
  11. PEAR 1.9.4 stable
  12. SOAP 0.12.0 beta
  13. Structures_Graph 1.0.4 stable
  14. XML_Util 1.2.1 stable

and in php i already inclue extension php_sqlsrv_53_ts_vc9.dll

在php.ini 中我已经包括了 dll

extension=php_sqlsrv_53_ts_vc9.dll i download the dll in http://download.microsoft.com/download/C/D/B/CDB0A3BB-600E-42ED-8D5E-E4630C905371/SQLSRV20.EXE

下面是php 代码 tp 连接 db 。

<?php
/**
 * PEAR
 */

require_once  DB.php ;
$DB = new DB();
$DBIn = $DB->connect($CONF[ db ], true);

?>

错误 : 找不到扩展名

问题回答

使用 phpinfo (); 以确保真的装入扩展名。 您可能忘记在更改 php. ini 之后重新启动网络服务器软件 。

I know its a long time since the question/answer... But still. I was also facing this issue, DB Err或: extension not found, and it happened to me on a new Centos 8 with PHP 7.x. and an old, legacy PHP application, where PEAR packages were user. Eventually, what I found out, were missing PHP modules, mysqli and mysqldn. So first, check the modules installed, running:

php -m

而不是,如果我的sql的东西丢失了:

apt-get install php-mysqlnd

yum install php-mysqlnd

Also a reminder...In my case I was also missing php-json and php-mbstring, so be sure to repeat the steps above f或 all missing modules.

此外,安装后, 重新启动您的 apache/ httpd :

service apache2 restart

systemctl restart httpd

钢架





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

难以执行 REGEXP_SUBSTR

I m 查询Oracle 10g。 我有两张表格(样本数据见下文)。 i m 试图提取一些领域

SQL Query Shortcuts

What are some cool SQL shorthands that you know of? For example, something I learned today is you can specify to group by an index: SELECT col1, col2 FROM table GROUP BY 2 This will group by col2

PHP array callback functions for cleaning output

I have an array of output from a database. I am wondering what the cleanest way to filter the values is example array Array ( [0] => Array ( [title] => title 1 ...

OracleParameter and DBNull.Value

we have a table in an Oracle Database which contains a column with the type Char(3 Byte). Now we use a parameterized sql to select some rows with a DBNull.Value and it doesn t work: OracleCommand ...

Running numbers in SQL

I have a SQL-statement like this: SELECT name FROM users WHERE deleted = 0; How can i create a result set with a running number in the first row? So the result would look like this: 1 Name_1 2 ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...

热门标签