#47338 [Opn->Fbk]: connect mysql when using apache sucks..
ID: 47338
Updated by: pajoye@php.net
Reported By: weimade at yahoo dot com dot cn
-Status: Open
+Status: Feedback
Bug Type: Apache2 related
Operating System: window xp sp3
PHP Version: 5.2CVS-2009-02-08 (CVS)
-Assigned To:
+Assigned To: pajoye
New Comment:
I suppose you have installed mysql 5.1 as well?
Previous Comments:
------------------------------------------------------------------------
[2009-02-08 14:27:07] weimade at yahoo dot com dot cn
iam sorry,i made a mistake..
Expected result:
----------------
nothing;just a blank page..
Actual result:
--------------
Connected successfully
change to
Expected result:
----------------
Connected successfully
Actual result:
--------------
nothing;just a blank page..
------------------------------------------------------------------------
[2009-02-08 14:25:04] weimade at yahoo dot com dot cn
Description:
------------
apache_2.2.11-win32-x86-no_ssl.msi
php-5.2.8-win32-installer.msi
when i use them to build the lamp..
s.php is
is run ok by php s.php
but it broken down when i request http://site/s.php
Reproduce code:
---------------
<?php
$link = mysql_connect('localhost', 'root', 'chenwei');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>
Expected result:
----------------
nothing;just a blank page..
Actual result:
--------------
Connected successfully
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47338&edit=1
Thread (5 messages)