Re: php5/MySQL 4.1.1 connection error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi ALL,
MySql support is not bundled with PHP 5.0.0

I have managed to connect to MySQL after I have copied the new dll
libmySQL.dll(in php/dlls) folder to c:\windows\system32
And modified the php.ini as per below.
In php.ini
; Directory in which the loadable extensions (modules) reside.
extension_dir = c:\php\extensions
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
extension=php_mysql.dll


"Kengaun" <kengaun@xxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:20040204071122.22283.qmail@xxxxxxxxxxxxxxx
> Hi,
>
> I am testing to use php5.0.0b3 and connect to MySQL 4.1.1 encountered
> connection problem:-
>
> <?php
>     $link = mysqli_connect("localhost", "purct", "prcyct","purct")
>     or die("Could not connect: " . mysql_error());
>     echo "Connected successfully";
>     mysql_close($link);
> ?>
>
>
> Error message:
> ---------------
> [04-Feb-2004 14:45:07] PHP Fatal error:  Call to undefined function
> mysql_connect() in D:\Purct\New1x.php on line 1
>
> Please help to advise what went wrong ?

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux