[peruser] Tip for using MySQL with PHP

Blaubaer blaubaer at dyntux.net
Sat Jul 16 15:34:35 MDT 2005


Simply... most of my users use the standart "localhost"... it's user 
friendly... when i don't change this i have to tell all this

----- Original Message ----- 
From: "Ben Kennedy" <ben at zygoat.ca>
To: "Peruser MPM List" <peruser at telana.com>
Sent: Saturday, July 16, 2005 4:34 PM
Subject: Re: [peruser] Tip for using MySQL with PHP


> Blaubaer wrote at 12:13 PM (+0200) on 7/16/05:
>
>>But when we use chroot with peruser, we have no access on this file. We 
>>can
>>type 127.0.0.1 or the original server ip, but its not a nice work.
> [...]
>>        if (strcmp(host,"localhost")==0)
>>            host="127.0.0.1";
>
> What is the difference here, then?  If I understand correctly, you are
> just hiding yourself from having to type "127.0.0.1" in mysql_connect()
> instead of "localhost".  So this is a purely cosmetic difference; why
> would you patch mysql just to achieve that?
>
> -ben
>
> -- 
> Ben Kennedy, chief magician
> zygoat creative technical services
> 613-228-3392 | 1-866-466-4628
> http://www.zygoat.ca
>
>
> _______________________________________________
> Peruser mailing list
> Peruser at telana.com
> http://www.telana.com/mailman/listinfo/peruser
> 




More information about the Peruser mailing list