Re: Cannot find extensions?

From: Date: Wed, 21 Jul 2004 08:37:52 +0000
Subject: Re: Cannot find extensions?
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-13943@lists.php.net to get a copy of this message
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. xbo@xbostudios.co.uk 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.


« previous php.install (#13943) next »