From owner-freebsd-questions@FreeBSD.ORG Wed Sep 29 14:35:51 2010 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 CB6D9106566B for ; Wed, 29 Sep 2010 14:35:51 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id A7C228FC08 for ; Wed, 29 Sep 2010 14:35:51 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1P0xl3-0007Vf-D8; Wed, 29 Sep 2010 10:35:50 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 9F1E34574D9D; Wed, 29 Sep 2010 10:35:44 -0400 (EDT) Message-ID: <4CA34EBB.5070704@FreeBSD.org> Date: Wed, 29 Sep 2010 10:35:39 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Martin McCormick References: <201009291421.o8TELqtc024880@dc.cis.okstate.edu> In-Reply-To: <201009291421.o8TELqtc024880@dc.cis.okstate.edu> X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.3 (/) Cc: freebsd-questions@freebsd.org Subject: Re: Not Sure Which Package has mssql_connect. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2010 14:35:51 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Martin McCormick wrote: > I just upgraded a system from FreeBSD6.3 to 8.1 and only have 2 > loose ends so far. > > One is that I discovered some of my C code needs a > little touching up to continue to work right and the other is > that we have an application on our system that uses freetds and > makes mysql queries and presently gives me the following error: > > Fatal error: Call to undefined function mssql_connect() in > > Line number of script is given and that line reads: > > $numero= mssql_connect("sql" , "natreg1" , "PASSWD" ); > > As soon as I find out what port or package contains > mysql_connect, we should be back in business. > > I did install mysql50-client. It does not contain the > mysql_connect routine so I deleted it. I installed the port > called mysql-connector-odbc which looked like a good possibility > but it also does not have the connect routine. > > I installed php5 to get the php interpreter so it is > possible that I have the wrong php and another php has the > mysql_connect routine so at this time, I am all ears. > > Thanks for any suggestions. > > Martin McCormick Hi Martin, You referred to C code at the top of your message, but are you actually looking for a PHP extension that contains the mssql_connection function so some PHP code runs correctly? I also have a question whether you're looking for a PHP extension that connections to a MS SQL server or one that connects to a MySQL server. I'm guessing you're trying to connect to MS SQL. If so, please install http://www.freshports.org/databases/php5-mssql/, and you should be all set. You shouldn't need to install http://www.freshports.org/databases/php5-mysql/ unless you're trying to connect to a MySQL server, too. Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFMo0660sRouByUApARAoexAJ0XugUPZFEGysN/9V04ixR48hUQdgCgwyca hqf9E5l6TdgR+VLanm3RZ60= =yufJ -----END PGP SIGNATURE-----