|
Posted by Jasper Bryant-Greene on 10/24/05 01:13
On Fri, 2005-10-21 at 12:06 -0700, hassan mahdi wrote:
> I have windows XP sevice pack 1 and 2, PHPv5.0.5, Mysql v1. I am working in web design. I am unable to connect to the mysql server. Althought my php files running fine and my mysql server is also running fine.
MySQL 1? Really? That's a *very* old version, you should really
upgrade :)
> i) i had changed the php.ini-dist file to php.ini.
>
> ii)i uncommented the extensions of php_mysql.dll in php.ini file
>
> iii)i set the
>
> extensions_dir to extension_dir = "D:\PHP\php-5.0.3\ext\" in php.ini file
If you're running PHP 5.0.5 then why is the directory called php-5.0.3?
> iv)i had copied the libmysql.dll in windows\system32 and windows\system i wrote the following code:
>
> [snip]
>
> but after all these i am still getting the error Fatal error: Call to undefined function mysql_connect() in D:\PHP\teknohub\new.php on line 14 please help me to solve this problem out.
Confirm that:
a) there exists a file php_mysql.dll in the directory D:\PHP\php-5.0.3
\ext
b) the php.ini file that you have been editing matches the one displayed
if you create a file containing <?php phpinfo(); ?> and view it with
your web browser
--
Jasper Bryant-Greene
General Manager
Album Limited
e: jasper@album.co.nz
w: http://www.album.co.nz/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579, Christchurch 8015, New Zealand
Navigation:
[Reply to this message]
|