Reply to mysql functions fail

Your name:

Reply:


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 ***

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация