|
Posted by Rik on 04/28/06 22:51
Nospam wrote:
> I receive Fatal error: Call to undefined function mysql_connect() in
> C:\webroot\mysql.php on line 3
>
> I am a little stuck as to where to go from now
http://nl2.php.net/manual/en/ref.mysql.php:
Installation on Linux Systems
PHP 5+
MySQL is not enabled by default, nor is the MySQL library bundled with PHP.
Read this FAQ for details on why. Use the --with-mysql[=DIR] configure
option to include MySQL support. You can download headers and libraries from
MySQL.
Installation on Windows Systems
PHP 5+
MySQL is no longer enabled by default, so the php_mysql.dll DLL must be
enabled inside of php.ini. Also, PHP needs access to the MySQL client
library. A file named libmysql.dll is included in the Windows PHP
distribution and in order for PHP to talk to MySQL this file needs to be
available to the Windows systems PATH. See the FAQ titled "How do I add my
PHP directory to the PATH on Windows" for information on how to do this.
Although copying libmysql.dll to the Windows system directory also works
(because the system directory is by default in the system's PATH), it's not
recommended.
If you've done all that, what does phpinfo() say about your MySql support?
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|