From owner-freebsd-questions@FreeBSD.ORG Wed Jun 15 05:30:42 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE3FF106564A for ; Wed, 15 Jun 2011 05:30:42 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 6C7B48FC0A for ; Wed, 15 Jun 2011 05:30:42 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QWiga-0003Kj-Au for freebsd-questions@freebsd.org; Wed, 15 Jun 2011 07:30:40 +0200 Received: from pool-173-79-85-36.washdc.fios.verizon.net ([173.79.85.36]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jun 2011 07:30:40 +0200 Received: from nightrecon by pool-173-79-85-36.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jun 2011 07:30:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Followup-To: gmane.os.freebsd.questions Date: Wed, 15 Jun 2011 01:30:52 -0400 Lines: 36 Message-ID: References: <0F3C08F3CEF445EB8DC0060735DCA69D@GLENN2> <201106141112.42324.rjgonzale@estrads.com.ar> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-85-36.washdc.fios.verizon.net Subject: Re: mysql_connect error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2011 05:30:42 -0000 Rodrigo Gonzalez wrote: > On Tuesday, June 14, 2011 09:46:17 AM Glenn McCalley wrote: >> Seen other people have this problem but cannot get their resolutions to >> work for me. >> >> "Fatal error: Call to oundefined function mysql_connect() in etc., etc." >> >> This began happening after an upgrade to php5 using the portmaster >> program. phpinfo page does -not- show the mysql_connect function >> anywhere. phpinfo page is at www9.bnetmd.net/index.php if you have the >> desire to look. > > It looks good, where are you getting the error? in a web page or using > cli? > Type php -v at a command prompt. It should return something like this: testbed# php -v PHP 5.3.6 with Suhosin-Patch (cli) (built: Mar 31 2011 11:08:23) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies with XCache v1.3.2-rc1, Copyright (c) 2005-2011, by mOo If it does not, go to the php-extensions port, run make config and check the box which builds the CLI version. It is in addition to all the other extensions so it won't interfere with them. The CGI build option is also more commonly required when using FastCGI. I'm basing this on the report that mysql_connect works OK in a web page but is failing when run at CLI. If I am misunderstanding something please excuse. -Mike