|
Posted by David Hinschberger on 02/25/06 04:43
Hi
I'm new to php and have just setup mysq 5.011l, apache 2.0.55 and php
5.1.2.2 on windows xp pro sp2.
Using php test code
<?php
echo ("Step 1\n");
$link = mysqli_connect("localhost", "root", "");
/* check connection */
if (!$link) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
printf("Host information: %s\n", mysqli_get_host_info($link));
/* close connection */
mysqli_close($link);
echo ("Step 2");
?>
the CLI outputs
Step 1
Host information: localhost via TCP/IP
Step 2
as expected.
IE 6.0 sp2 when calling the php file outputs
Step 1
and nothing more.
Any ideas how to get Apache to output what the CLI does.
PS I have configured mysql extensions to be active in php.ini
changed extensions dir to
extension_dir = "./ext/"
uncommented
extension=php_mysql.dll
extension=php_mysqli.dll
added lines to httpd.conf
PHPIniDir "C:/php"
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
*** Free account sponsored by SecureIX.com ***
*** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com ***
Navigation:
[Reply to this message]
|