Posted by janvdberg on 04/26/06 14:29
Hi Erwin and Colin,
thanks for the responses! And you're right maybe this should have been
posted in a different group but none-the-less I have found a solution
(lovely people at php.pecl@efnet) that I'd like to share (maybe it will
be useful to someone else googling for it)
For php 4.4.2 on Linux in the sourcefile: ext/mysql/php_mysql.c add
this to line 643:
if (!strcmp(host, "localhost")) {
if (free_host) {
efree(host);
}
free_host = 0;
host = "mysql.host.com";
}
This will make the php/mysql interface interpretet localhost as a
network socket. For now it does the trick. But I will be sure to
test/test/test it (since it's php/mysql specfic Im guessing/testing it
will not effect other PHP functions).
Thanks.
Jan
[Back to original message]
|