Ik draai een mysql server op een andere machine dan mijn webserver. Op deze webserver zit apache geinstaleerd met php support. Maar nu wil ik met php een connectie maken naar mysql, maar dan zegt hij:
Fatal error: Call to undefined function: mysql_connect() in /l2/httpd/hoom/test.php on line 3
Na wat gezoek op in de php manual:
These functions allow you to access MySQL database servers. In
order to have these functions available, you must compile PHP
with MySQL support by using the --with-mysql option. If you
use this option without specifying the path to MySQL, PHP will
use the built-in MySQL client libraries. Users who run other applications that use MySQL (for example, running PHP 3 and PHP 4
as concurrent apache modules, or auth-mysql) should always
specify the path to MySQL:
--with-mysql=/path/to/mysql.
This will force PHP to use the client libraries installed by
MySQL, avoiding any conflicts.
Maar nu snap ik niet wat ik moet doen
Kan iemand me op weg helpen?
Fatal error: Call to undefined function: mysql_connect() in /l2/httpd/hoom/test.php on line 3
Na wat gezoek op in de php manual:
These functions allow you to access MySQL database servers. In
order to have these functions available, you must compile PHP
with MySQL support by using the --with-mysql option. If you
use this option without specifying the path to MySQL, PHP will
use the built-in MySQL client libraries. Users who run other applications that use MySQL (for example, running PHP 3 and PHP 4
as concurrent apache modules, or auth-mysql) should always
specify the path to MySQL:
--with-mysql=/path/to/mysql.
This will force PHP to use the client libraries installed by
MySQL, avoiding any conflicts.
Maar nu snap ik niet wat ik moet doen
...