From owner-freebsd-questions Fri Nov 12 7:23:15 1999 Delivered-To: freebsd-questions@freebsd.org Received: from athserv.otenet.gr (athserv.otenet.gr [195.170.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 53E5E1503A for ; Fri, 12 Nov 1999 07:22:43 -0800 (PST) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from hades.hell.gr (patr530-a067.otenet.gr [195.167.115.67]) by athserv.otenet.gr (8.9.3/8.9.3) with SMTP id RAA08955 for ; Fri, 12 Nov 1999 17:22:40 +0200 (EET) Received: (qmail 2642 invoked by uid 1001); 12 Nov 1999 14:44:41 -0000 To: freebsd-questions@freebsd.org Subject: Re: question about php3 and mysql References: <382ACC93.5C3C0D92@pub.sy.ln.cn> From: Giorgos Keramidas Date: 12 Nov 1999 16:44:40 +0200 In-Reply-To: ZhangJiYu's message of "Thu, 11 Nov 1999 22:02:59 +0800" Message-ID: <861z9vojl3.fsf@localhost.hell.gr> Lines: 31 X-Mailer: Gnus v5.6.45/XEmacs 21.1 - "20 Minutes to Nikko" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ZhangJiYu writes: > Hello: > > I installed apache-php3-1.3.4 , later installed > mysql-3.22.16g , when I use function mysql_connect() , system say : The answer is in your first line! Installing PHP3 and _then_ installing MySQL (and it's libraries) will not let your php installation locate the necessary MySQL support libraries, effectively dropping support for that database when it builds. > PHP3 Error: > Fatal error: Call to unsupported or undefined function > mysql_connect() in /usr/local/www/data/test/db.php3 on line 8 > > Why ? I had added "extension=php3_mysql.so" in my php3.ini > file . I use FreeBSD-3.1 Release . > Should I delete apache-php3-1.3.4 and reinstall it ? on the > other words , must install mysql-3.22.16g before install > apache-php3-1.3.4 . Right on the spot. Try installing MySQL first, then Apache+PHP. Oh, and one last thing. Apparently, you're using Netscape for sending your mail. Please change your email preferences to post _only_ in text, without the extra html stuff. -- Giorgos Keramidas, "What we have to learn to do, we learn by doing." [Aristotle] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message