Jason Paschal escreveu:
I use this setup locally for testing/playing. I recently installed the
latest and greatest of the AMP collection.
Apache 2.2.4
PHP 5.2.2
MySQL 5.0.37
Apache and PHP work fine together, but I wanted to hook it up to a local
test database, so I installed MySQL.
In php.ini, i have:
; Directory in which the loadable extensions (modules) reside.
extension_dir = "C:\PHP"
----------------------------------------------------------
If you have installed all AMP individualy, the
> extension_dir = "C:\PHP"
must be
extension_dir = "C:\PHP\ext"
... where other PECL extensions must be unziped, too.
----------------------------------------------------------
i made sure that i moved the dll to that folder, just like i did with
the gd
dll.
And then i uncommented this line:
extension=php_mysql.dll
I restarted Apache, and ran a simple test script:
<?php
ini_set("display_errors","1");
$cn = mysql_connect("localhost","root","password");
?>
and I get the error:
*Fatal error*: Call to undefined function mysql_connect()
any ideas?
thanks in advance,
jason
----------------------------------------------------------
--
zerof
http://www.educar.pro.br/
Apache - PHP - MySQL - Boolean Logics - Project Management
----------------------------------------------------------
Você deve, sempre, consultar uma segunda opinião!
----------------------------------------------------------
Deixe todos saberem se esta informação foi-lhe útil.
----------------------------------------------------------
You must hear, always, one second opinion! In all cases.
----------------------------------------------------------
Let the people know if this info was useful for you!
----------------------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php