PHP 5和PEAR [英] PHP 5 and PEAR
问题描述
我一直在使用PHP一段时间 - 并且最近一直在尝试使用
在Windows上设置PHP,MySQL和Apache(对于客户端)。
看起来PHP 5下的所有PEAR都没有开箱即用。
我花了一段时间来追踪go-pear根目录中的.bat文件 -
那里有所有其他垃圾。
难道这个文件至少不能提到:
install.txt和/PEAR/go-pear.php
....?
/PEAR/go-pear.php for Windows
中的安装说明似乎已经过时 - 并且完全错误地将我发送给了b
方向:-(
-
__________
| im | yler http://timtyler.org/ ti*@tt1lock.org 删除锁定以回复。
I''ve been using PHP for a while now - and have recently been trying
to set up PHP, MySQL and Apache on Windows (for a client).
It seems like all the PEAR stuff under PHP 5 doesn''t work out of the box.
It took me a while to track down the go-pear.bat file in the root -
what with all the other garbage in there.
Shouldn''t this file get at least a mention in:
install.txt and /PEAR/go-pear.php
....?
The installation instructions in /PEAR/go-pear.php for Windows
seem rather out of date - and sent me off in totally the wrong
direction :-(
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
推荐答案
我,Tim Tyler& LT; ti*@tt1lock.org>写道或引用:
I, Tim Tyler <ti*@tt1lock.org> wrote or quoted:
我一直在使用PHP一段时间了 - 最近一直在尝试在Windows上设置PHP,MySQL和Apache(用于客户端)。
似乎PHP 5下的所有PEAR都没有开箱即用。
我花了一段时间来追踪在根目录中的pear.bat文件 -
那里有所有其他垃圾。
这个文件至少不应该提到:
install.txt和/PEAR/go-pear.php
/ PEAR/go-pear.php中的安装说明
似乎已经过时了 - 并且完全错误地将我送去了方向: - (
I''ve been using PHP for a while now - and have recently been trying
to set up PHP, MySQL and Apache on Windows (for a client).
It seems like all the PEAR stuff under PHP 5 doesn''t work out of the box.
It took me a while to track down the go-pear.bat file in the root -
what with all the other garbage in there.
Shouldn''t this file get at least a mention in:
install.txt and /PEAR/go-pear.php
...?
The installation instructions in /PEAR/go-pear.php for Windows
seem rather out of date - and sent me off in totally the wrong
direction :-(
之后:
*安装PHP 5.0.0和...
*运行go-pear.bat文件;
php_ini();现在给出:
include_path .; C:\ php5 \ pear。; C:\ php5 \ thear
我/发誓/我哈我从来没有提到C:\ _ pp5。
我的PHP安装在经典中。 location:C:\ php.
C:\ php5在我的php.ini文件中没有提到。
它在我的环境变量中没有提到。
看起来它/可能/是开发日的宿醉 -
当程序员可能有已经安装了多个版本的PHP。
我可以解决这个问题 - 但是很想跟踪
的原因 - 如果只是为了找出谁是责备;-)
有没有人知道这条错误的路径可能来自哪里?
-
__________
| im | yler http://timtyler.org/ < a href =mailto:ti*@tt1lock.org> ti*@tt1lock.org 取消锁定以回复。
After:
* Installing PHP 5.0.0 and...
* Running the "go-pear.bat" file;
php_ini(); now gives:
include_path .;C:\php5\pear .;C:\php5\pear
I /swear/ I have never mentioned C:\php5.
My PHP installation is at the "classical" location: C:\php.
C:\php5 isn''t mentioned in my php.ini file.
It isn''t mentioned in my environmental variables.
It looks like it /might/ be a hangover from the development days -
when the programmers probably had multiple versions of PHP installed.
I can hack around this problem - but would quite like to track down
the cause - if only to find out who is to blame ;-)
Does anyone have any idea where this incorrect path might be coming from?
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Tim Tyler< ti * @ tt1lock.org>编写或引用:
Tim Tyler <ti*@tt1lock.org> wrote or quoted:
之后:
*安装PHP 5.0.0和...
*运行go-pear.bat ;文件;
php_ini();现在给出:
include_path .; C:\ php5 \ pear。; C:\ php5 \ thear
我/发誓/我从未提及过C: \ _pp5。
我的PHP安装位于经典版本。 location:C:\ php.
在我的php.ini文件中没有提到C:\ _ pp5。
在我的环境中没有提到变量。
看起来它/可能/是开发日的宿醉 -
当程序员可能安装了多个版本的PHP时。
我可以解决这个问题 - 但是很想追查原因 - 如果只是为了找出谁应该受到责备;-)
有谁知道这条错误的道路可能在哪里来自?
After:
* Installing PHP 5.0.0 and...
* Running the "go-pear.bat" file;
php_ini(); now gives:
include_path .;C:\php5\pear .;C:\php5\pear
I /swear/ I have never mentioned C:\php5.
My PHP installation is at the "classical" location: C:\php.
C:\php5 isn''t mentioned in my php.ini file.
It isn''t mentioned in my environmental variables.
It looks like it /might/ be a hangover from the development days -
when the programmers probably had multiple versions of PHP installed.
I can hack around this problem - but would quite like to track down
the cause - if only to find out who is to blame ;-)
Does anyone have any idea where this incorrect path might be coming from?
*可能*来自注册表 - 因为执行:
PEAR_ENV.reg文件并重新启动Apache似乎已经纠正了
的情况。
我认为unix程序员给了注册表一个宽阔的位置;-)
我的下一个问题是与MySQL的通信(最新版本)
不起作用。
PHPMyAdmin提出:
``无法加载MySQL扩展,请检查PHP配置''''。
这种情况发生在PHP 5.0.0上 - 其中MySQL集成是
*假设*要构建它发生在PHPMyAdmin的最新版本的b $ b版本以及早期版本中。
其他尝试使用其他程序访问数据库
产生类似的错误 - 例如,带有PHP 5.0.0的
的PEAR说:
``数据库连接错误: DB错误:找不到扩展名''''
是否有其他人在Windows下使用PHP 5.0.0和MySQL与其他人交谈? - 如果是的话,你用来设置的神秘的
咒语是什么? ;-)
-
__________
| im | yler http://timtyler.org/ ti*@tt1lock.org 删除锁定以回复。
*Probably* from the registry - since executing the:
PEAR_ENV.reg file and rebooting Apache seems to have rectified the
situation.
I thought unix programmers gave the registry a wide berth ;-)
My next problem is that communication with MySQL (latest version)
doesn''t work.
PHPMyAdmin comes up with:
``Cannot load MySQL extension, please check PHP Configuration''''.
This happens on PHP 5.0.0 - where the MySQL integration is
*supposed* to be built in. It happens on the very latest
version of PHPMyAdmin - as well as with earlier versions.
Other attemps to access database using other programs also
produce similar errors - for instance the PEAR that comes
with PHP 5.0.0 says:
``Error during database connection:DB Error: extension not found''''
Does anyone else have PHP 5.0.0 and MySQL talking to each
other under Windows? - and if so, what''s the mystical
incantation you used to set things up? ;-)
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
2004年7月27日星期二19:37:55 +0000,Tim Tyler写道:
[snip]
On Tue, 27 Jul 2004 19:37:55 +0000, Tim Tyler wrote:
[ snip ]
``无法加载MySQL扩展,请检查PHP配置''''
这发生在PHP 5.0.0上 - MySQL集成在哪里/> *假设*内置。它发生在PHPMyAdmin的最新版本 - 以及早期版本。
``Cannot load MySQL extension, please check PHP Configuration''''.
This happens on PHP 5.0.0 - where the MySQL integration is
*supposed* to be built in. It happens on the very latest
version of PHPMyAdmin - as well as with earlier versions.
[snip]
我还没试过PHP5,但是从ChangeLog:
版本5.0.0 Beta 1
29-Jun-2003
*删除了捆绑的MySQL客户端库。 (英镑)
PHP5现在似乎与SQLite捆绑在一起并默认启用。
如何让他们成功说话,我不知道..我的服务器运行
在一个称职的OS = P
问候,
Ian
-
Ian.H
digiServ网络
伦敦,英国
http://digiserv.net/
[ snip ]
I haven''t tried PHP5 yet, but from the ChangeLog:
Version 5.0.0 Beta 1
29-Jun-2003
* Removed the bundled MySQL client library. (Sterling)
PHP5 seems now to be bundled with SQLite and enabled by default.
How to get them successfully talking, that I have no idea.. my servers run
on a competent OS =P
Regards,
Ian
--
Ian.H
digiServ Network
London, UK
http://digiserv.net/
这篇关于PHP 5和PEAR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!