mysql_connect通过php停止 [英] mysql_connect stops via php

查看:82
本文介绍了mysql_connect通过php停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




如果这不是发布此

问题的合适团体,请转移我。


我是一个Linux客户端试图通过

php连接到mysql windows服务器,在我的php脚本中点击mysql_connect行后,它只是

停止执行。换句话说,任何与它有关的东西,如回声

都不会在html源代码中结束。我不完全确定php脚本的内部工作原理,所以我无法解释为什么在mysql_connect出现之前echo命令

。但是,当mysql_connect行被注释掉时,它们显示为
罚款。是解析

问题吗?


命令行mysql连接工作正常。


phpinfo()给出正确的mysql信息。


apace error_log说*** glibc检测到***双免费或腐败

(!prev):0x08132138 ***

[太阳11月4日14:18:33 2007] [通知]儿童pid 2316退出信号已中止

(6)

任何想法如何去调试这个非常感谢。


谢谢,

Farhan

Hi,

Please divert me if this is not the right group to be posting this
question.

I am a Linux client trying to connect to a mysql windows server via
php, upon hitting the mysql_connect line in my php script, it simply
stops executing. In other words anything or''ed with it, like echo
does not end up in the html source. I''m not entirely sure on the
inner workings of php scripting so I can''t explain why echo commands
before the mysql_connect don''t show up either. However, they appear
fine when the mysql_connect line is commented out. Is it a parsing
issue?

Command line mysql connection works just fine.

phpinfo() gives correct mysql info.

apace error_log says *** glibc detected *** double free or corruption
(!prev): 0x08132138 ***
[Sun Nov 4 14:18:33 2007] [notice] child pid 2316 exit signal Aborted
(6)
Any ideas of how to go about debugging this much appreciated.

Thanks,
Farhan

推荐答案

Howz关于发布你的代码?

除此之外,检查你的php.ini文件中的设置,并确保打开错误报告




套装


error_reporting = E_ALL





display_errors = On


重新启动服务器并再次运行脚本。

Howz about posting your code?
Apart from that, check the settings in your php.ini file and make sure
that error reporting is turned on:

set

error_reporting = E_ALL

and

display_errors = On

restart the server and run the script again.


>我是试图连接到mysql风的Linux客户端ows服务器通过
>I am a Linux client trying to connect to a mysql windows server via

> php,在我的php脚本中点击mysql_connect行后,它只是停止执行。换句话说,任何与它有关的东西,如echo
都不会在html源代码中结束。我不完全确定php脚本的内部工作方式,所以我无法解释为什么echo命令在mysql_connect出现之前不会出现。但是,当mysql_connect行被注释掉时,它们看起来很好。这是一个解析
问题吗?
>php, upon hitting the mysql_connect line in my php script, it simply
stops executing. In other words anything or''ed with it, like echo
does not end up in the html source. I''m not entirely sure on the
inner workings of php scripting so I can''t explain why echo commands
before the mysql_connect don''t show up either. However, they appear
fine when the mysql_connect line is commented out. Is it a parsing
issue?



假设您在Apache下运行PHP作为模块,PHP有
dumped core。这是一个严重的错误(在PHP,Apache,或者很可能是MySQL客户端库中的
)。

Assuming you have PHP running under Apache as a module, PHP has
dumped core. This is a serious error somewhere (in PHP, Apache, or
the MySQL client library, most likely).


>命令行mysql连接工作正常。

phpinfo()提供正确的mysql信息。

apace error_log说*** glibc检测到***双免费或腐败
( !上一篇):0x08132138 ***
[Sun Nov 4 14:18:33 2007] [通知]儿童pid 2316退出信号已中止
(6)
>Command line mysql connection works just fine.

phpinfo() gives correct mysql info.

apace error_log says *** glibc detected *** double free or corruption
(!prev): 0x08132138 ***
[Sun Nov 4 14:18:33 2007] [notice] child pid 2316 exit signal Aborted
(6)



您可能会尝试隔离导致问题的原因(例如,如果您尝试使用不正确的密码,它还会爆炸吗?)但是调试

PHP如果你不熟悉PHP源代码,那就不容易了。


也许你可以尝试重新安装PHP,所有扩展和MySQL

客户端库。

You might try isolating what causes the problem (for instance, does it
still blow up if you try using an incorrect password?) but debugging
PHP isn''t going to be easy if you aren''t familiar with PHP source code.

Perhaps you could try reinstalling PHP, all the extensions, and the MySQL
client library.


11月4日晚上8:05,macca< ptmcna ... @ googlemail.comwrote:
On Nov 4, 8:05 pm, macca <ptmcna...@googlemail.comwrote:

Howz关于posti你的代码?


除此之外,检查你的php.ini文件中的设置,并确保打开错误报告




套装


error_reporting = E_ALL





display_errors = On


重新启动服务器并再次运行脚本。
Howz about posting your code?

Apart from that, check the settings in your php.ini file and make sure
that error reporting is turned on:

set

error_reporting = E_ALL

and

display_errors = On

restart the server and run the script again.



这是:


<?php

Here it is:

<?php


这篇关于mysql_connect通过php停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆