>>
Site Map
>>
Forums
>>
Modules 7x
Forum module - topics in forum:
Modules 7x - Discussions regarding PHP-Nuke Modules. 7x
Remote Database
Hello all,
I am creating a nuke module that connects to a mysql server that is not on the same host as the nuke db. This is so that a DJs songs can be automatically updated and they will have seperate ip addresses and databases.
I have tried connect with the stanadard mysql_connect, but the page returns with absolutely no output (no theme, nothing). I have also tried connecting again with the sql_connect outlined in the sql_layer.php file, with the same result. I have also tried using PHP PEAR to connect but it claimed that it could not connect. In each of these examples, I am sure that the variables were correct because I tested them in an independent file.
Is there something that I can do to connect to another mysql database in the middle of a module?
I would be interested in other answers that come up but I would check that the mysql user for the remote database has permission to connect from the ip address of your web server, not just localhost.