|
Posted by Erwin Moller on 04/26/06 15:34
janvdberg@gmail.com wrote:
> 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
Great Jan,
That solution only affects PHP talking with MySQL, excactly what you want.
Good. :-)
Send the chaps at php.pecl@efnet a nice bottle of wine for saving you to
talk with 2500 different webmasters. ;-)
Good luck.
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|