Hi had this one myself with the same Apache and PHP releases, though fortunately I'd turned the error messaging on so I got the error message on the browser rather than having to look at log files.
The problem for me at least was that I had not moved the libmysql.dll (that is libmysql.dll NOT php_mysql.dll which references the libmysql.dll) to my C:\windows\system32 directory. regards, Chris Hunt "Jean-Marc Pulvar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > Have you put all the dll located in the php dll's directory in your > system32 directory? > > If not I think this will work much better. > > [EMAIL PROTECTED] wrote: > > Hi, > > I have been trying to install Apache 2.0, PHP5 and MySQL 4.1.3b and have came > > across a problem. > > > > I have the code: > > <?php > > echo "test1"; > > $link = mysqli_connect("localhost", "foo", "bar", "world"); > > > > /* 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 "test"; > > ?> > > > > and when i run it all i see is "test1" - no further output. > > On looking into the Apache error log, i see this message: > > "[client 127.0.0.1] PHP Fatal error: Call to undefined function > > mysqli_connect() in E:\\CS301\\htdocs\\phpinfo.php on line 4" > > > > After having a play, i decided to edit my php.ini and have the following set: > > > > extension_dir = "C:\Program Files\PHP5\ext\" > > extension=php_mysql.dll > > extension=php_mysqli.dll > > > > (i have php installed in c:\program files\PHP5\) > > > > Now, when i start Apache i get the error message: > > "PHP Startup: Unable to load dynamic library 'C:\Program > > Files\PHP5\ext\php_mysql.dll' - The specified module could not be found." > > > > and same again for php_mysqli.dll. > > > > I can clearly see these files do exist and are at that path. > > > > Why wont it work? > > if i don't manage to get this fixed soon i'll be bald - given the amout of hair > > i've pulled out already! > > > > Any help is appreciated, > > Thank you, > > Colin.