且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

扩展文件未加载

更新时间:2023-12-05 20:22:46

2007年12月3日星期一19:46:25 +0100,pdhb_1< mb ** **@phys.ksu.eduwrote:

我正在尝试用php运行Apache2.2.6。但是,我一直在日志文件中得到一个长的

错误消息列表,表明包括

失败。例如,


" PHP警告:PHP启动:无法加载动态库''。/ etc /

php_sybase_ct.dll'' - 指定无法找到模块。\\\\ n

第0行未知 


我更改了extension_dir php.ini文件中的每一行代码

我能想到的,包括原文:


extension_dir =" C:/ PHP / ext"




extension_dir =。/ ext /


我尝试过使用和不使用引号,向前斜线,反斜杠,

等直接路径和间接路径都失败。


如何让php找到这些文件?



嗯,首先,你确定这些扩展是否存在?你是

编辑正确的php.ini(检查phpinfo()的输出:它说它使用了什么文件

,如果你实际改变了你的extension_dir更改

它(然后你重新启动Apache事件,php.ini只能在

启动时阅读....)

-

Rik Wasmus


12月3日上午10:51,Rik Wasmus< luiheidsgoe ... @ hotmail.comwrote:

2007年12月3日星期一19:46:25 +0100,pdhb_1< mbr ... @ phys.ksu.eduwrote:

我正在尝试用php运行Apache2.2.6。但是,我一直在日志文件中得到一个长的

错误消息列表,表明包括

失败。例如,


" PHP警告:PHP启动:无法加载动态库''。/ ext /

php_sybase_ct.dll'' - 指定的模块无法找到。\\\\ n

第0行未知


我更改了extension_dir php.ini文件中的每一行都有

我能想到的,包括原文:


extension_dir =" C:/ PHP / EXT&QUOT;




extension_dir =。/ ext /


我尝试过使用和不使用引号,前向斜杠,反斜杠,

等。直接路径和间接路径都失败了。


我如何让php找到这些文件?



嗯,首先,你确定这些扩展是否存在?你是

编辑正确的php.ini(检查phpinfo()的输出:它说它使用了什么文件

,如果你实际改变了你的extension_dir更改

它(然后你重新启动Apache事件,php.ini只能在

启动时阅读....)


-

Rik Wasmus-隐藏引用文字 -


- 显示引用文字 -



是的,扩展名在那里,被搜索的路径确实取决于我如何设置extension_dir



日志文件将忠实再现我在行中指示的路径

报告错误。例如,

extension_dir =" C:\PHP \ ext"


结果形式的行:


" PHP警告:PHP启动:无法加载动态库''C:\\PHP \

\\ \\\\\ [php_sybase_ct.dll'' - 无法找到指定的模块。\ r

\ n in第0行的未知"


pdhb_1写道:

12月3日上午10点51分, Rik Wasmus < luiheidsgoe ... @ hotmail.comwrote:

> On Mon,03 Dec 2007 19:46:25 +0100,pdhb_1< mbr ... @ phys.ksu.eduwrote:

>>我正在尝试用php运行Apache2.2.6。但是,我不断在日志文件中获得一长串错误消息,表明包含的内容正在失败。例如,
PHP警告:PHP启动:无法加载动态库./ext/
php_sybase_ct.dll'' - 找不到指定的模块。\\\\ n在第0行的
未知中
我已经更改了extension_dir php.ini文件中的每一行我都能想到,包括原文:
extension_dir =" C:/ PHP / ext"

extension_dir =。/分机/
我试过有没有引号,前锋斜线,反斜线,
等。直接路径和间接路径都失败了。
如何让php找到这些文件?


嗯,首先,你确定这些扩展是否存在?你是否正在编辑正确的php.ini(检查phpinfo()的输出:它说它使用了什么文件,如果你改变了它,你的extension_dir实际上会改变它(和你事后重新启动Apache,php.ini只能在启动时阅读....)

- Rik Wasmus-隐藏引用的文字 -

- 显示引用的文字 -



是的,扩展程序在那里,正在搜索的路径确实依赖于

我如何设置extension_dir 。

日志文件将忠实地再现我在行中报告的路径

报告错误。例如,

extension_dir =" C :\ PHP \\\ text"


会产生以下形式的行:


" PHP警告:PHP启动:无法加载动态库''C:\\PHP \

\ext \\ php_sybase_ct.dll'' - 无法找到指定的模块。\ r

\ n在第0行的未知中"



如果找不到PHP SyBase DLL

所需的DLL之一,也会发生这种情况。你是否安装了SyBase库并且可用于

加载(即在你的PATH环境中)?


-

= =================

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

==================


I''m trying to run Apache2.2.6 with php. However, I keep getting a long
list of error messages in the log file indicating that includes are
failing. For example,

"PHP Warning: PHP Startup: Unable to load dynamic library ''./ext/
php_sybase_ct.dll'' - The specified module could not be found.\r\n in
Unknown on line 0"

I have changed the "extension_dir" line in the php.ini file every way
I can think of, including the original:

extension_dir="C:/PHP/ext"

and

extension_dir=./ext/

I have tried with and without quotes, foreward slashes, back slashes,
etc. Both direct paths and indirect paths fail.

How do I get php to find these files?

Thanks

On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 <mb****@phys.ksu.eduwrote:
I''m trying to run Apache2.2.6 with php. However, I keep getting a long
list of error messages in the log file indicating that includes are
failing. For example,

"PHP Warning: PHP Startup: Unable to load dynamic library ''./ext/
php_sybase_ct.dll'' - The specified module could not be found.\r\n in
Unknown on line 0"

I have changed the "extension_dir" line in the php.ini file every way
I can think of, including the original:

extension_dir="C:/PHP/ext"

and

extension_dir=./ext/

I have tried with and without quotes, foreward slashes, back slashes,
etc. Both direct paths and indirect paths fail.

How do I get php to find these files?


Well, first of all, are you sure these extensions are there? And are you
editing the right php.ini (check the output of phpinfo(): what file does
it say it uses, and does your extension_dir actually alter if you change
it (and you restart Apache afterwards offcourse, php.ini is only read on
startup....)
--
Rik Wasmus


On Dec 3, 10:51 am, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 <mbr...@phys.ksu.eduwrote:
I''m trying to run Apache2.2.6 with php. However, I keep getting a long
list of error messages in the log file indicating that includes are
failing. For example,

"PHP Warning: PHP Startup: Unable to load dynamic library ''./ext/
php_sybase_ct.dll'' - The specified module could not be found.\r\n in
Unknown on line 0"

I have changed the "extension_dir" line in the php.ini file every way
I can think of, including the original:

extension_dir="C:/PHP/ext"

and

extension_dir=./ext/

I have tried with and without quotes, foreward slashes, back slashes,
etc. Both direct paths and indirect paths fail.

How do I get php to find these files?


Well, first of all, are you sure these extensions are there? And are you
editing the right php.ini (check the output of phpinfo(): what file does
it say it uses, and does your extension_dir actually alter if you change
it (and you restart Apache afterwards offcourse, php.ini is only read on
startup....)

--
Rik Wasmus- Hide quoted text -

- Show quoted text -

Yes, the extensions are there, and the path being searched does depend
on how I set extension_dir.
The log file will faithfully reproduce the path I indicate in the line
reporting the error. For example,
extension_dir="C:\PHP\ext"

results in lines of the form:

"PHP Warning: PHP Startup: Unable to load dynamic library ''C:\\PHP\
\ext\\php_sybase_ct.dll'' - The specified module could not be found.\r
\n in Unknown on line 0"


pdhb_1 wrote:
On Dec 3, 10:51 am, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
>On Mon, 03 Dec 2007 19:46:25 +0100, pdhb_1 <mbr...@phys.ksu.eduwrote:
>>I''m trying to run Apache2.2.6 with php. However, I keep getting a long
list of error messages in the log file indicating that includes are
failing. For example,
"PHP Warning: PHP Startup: Unable to load dynamic library ''./ext/
php_sybase_ct.dll'' - The specified module could not be found.\r\n in
Unknown on line 0"
I have changed the "extension_dir" line in the php.ini file every way
I can think of, including the original:
extension_dir="C:/PHP/ext"
and
extension_dir=./ext/
I have tried with and without quotes, foreward slashes, back slashes,
etc. Both direct paths and indirect paths fail.
How do I get php to find these files?

Well, first of all, are you sure these extensions are there? And are you
editing the right php.ini (check the output of phpinfo(): what file does
it say it uses, and does your extension_dir actually alter if you change
it (and you restart Apache afterwards offcourse, php.ini is only read on
startup....)

--
Rik Wasmus- Hide quoted text -

- Show quoted text -


Yes, the extensions are there, and the path being searched does depend
on how I set extension_dir.
The log file will faithfully reproduce the path I indicate in the line
reporting the error. For example,
extension_dir="C:\PHP\ext"

results in lines of the form:

"PHP Warning: PHP Startup: Unable to load dynamic library ''C:\\PHP\
\ext\\php_sybase_ct.dll'' - The specified module could not be found.\r
\n in Unknown on line 0"

This can also occur if one of the DLL''s required by the PHP SyBase DLL
can''t be found. Do you have the SyBase libs installed and available for
loading (i.e. in your PATH environment)?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================