From owner-freebsd-questions@FreeBSD.ORG Wed Jun 15 10:15:46 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 B647E106566C for ; Wed, 15 Jun 2011 10:15:46 +0000 (UTC) (envelope-from glenn@bnetmd.net) Received: from worden.electric.net (smtp-out-32.electric.net [72.35.23.32]) by mx1.freebsd.org (Postfix) with ESMTP id 891578FC0A for ; Wed, 15 Jun 2011 10:15:46 +0000 (UTC) Received: from 1QWn8S-0003XK-Vs by worden.electric.net with emc1-ok (Exim 4.76) (envelope-from ) id 1QWn8T-0003Xi-Tf for freebsd-questions@freebsd.org; Wed, 15 Jun 2011 03:15:45 -0700 Received: by emcmailer; Wed, 15 Jun 2011 03:15:45 -0700 Received: from [10.86.5.46] (helo=fuse246.electric.net) by worden.electric.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QWn8S-0003XK-Vs for freebsd-questions@freebsd.org; Wed, 15 Jun 2011 03:15:44 -0700 Received: from mailanyone.net by fuse246.electric.net with esmtpa (MailAnyone extSMTP glenn@bnetmd.net) id 1QWn8R-0007jx-PL for freebsd-questions@freebsd.org; Wed, 15 Jun 2011 03:15:44 -0700 Message-ID: <5B2094B3984F40BF98CE30D698431C6D@GLENN2> From: "Glenn McCalley" To: References: <0F3C08F3CEF445EB8DC0060735DCA69D@GLENN2><201106141112.42324.rjgonzale@estrads.com.ar> Date: Wed, 15 Jun 2011 06:15:41 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 X-Outbound-IP: 10.86.5.46 X-Env-From: glenn@bnetmd.net X-PolicySMART: 1273431 X-Virus-Status: Scanned by VirusSMART (c) X-Mailman-Approved-At: Wed, 15 Jun 2011 13:03:09 +0000 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 10:15:46 -0000 ----- Original Message ----- From: "Michael Powell" To: Sent: Wednesday, June 15, 2011 1:30 AM Subject: Re: mysql_connect error > 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > Mike, your understanding is correct - works in a web page but fails from cli. php -v output below: www9# php -v PHP 5.2.17 with SUhosin-Patch 0.9.7 (cli) (built: