Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13110 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24394 invoked by uid 1010); 3 Oct 2004 00:39:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 24287 invoked from network); 3 Oct 2004 00:39:08 -0000 Received: from unknown (HELO fs1.fairscale.de) (80.237.204.20) by pb1.pair.com with SMTP; 3 Oct 2004 00:39:08 -0000 Received: from [80.185.202.191] (helo=desktop.rtnet) by fs1.fairscale.de with asmtp (Exim 4.41) id 1CDy98-0001P6-Ul for internals@lists.php.net; Sun, 03 Oct 2004 04:38:55 +0000 Date: Sun, 3 Oct 2004 02:39:13 +0200 To: PHP Internals Message-ID: <20041003023913.23b1841e@desktop.rtnet> X-Mailer: Sylpheed-Claws 0.9.12a (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Subject: mysql_connect('localhost') should use tcp/ip instead of socket From: ml@lalamuhkuh.de (Roland Tapken) Hi! When using 'localhost' in mysql_connect(), php tries to use a socket to connect to the mysql daemon. Is there a way to force php to resolve the hostname of localhost, maybe by patching some source file? The reason is that a socket is not avaible because mysql and apache are running in different chroot jails on my server. gru=DF, Roland --=20 "Ich kenne niemanden, der nachts vom Kiffen nach Hause kommt und seine Frau schl=E4gt."