Not Sure Which Package has mssql_connect.
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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Not Sure Which Package has mssql_connect.
Hi Martin, On 9/29/10 10:21 AM, 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 ); Are you sure mssql_connect() isn't a typo? The rest of your email states mysql_connect(). 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. Cheers, -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Not Sure Which Package has mssql_connect.
-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- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Not Sure Which Package has mssql_connect.
Glen Barber writes: Are you sure mssql_connect() isn't a typo? The rest of your email states mysql_connect(). Wow! I've been doing too much of this this week. It's actually the other way around. The problem is with mssql_connect and my references to mysql were based on a bit of confusion. We are connecting to a remote SQL server and pulling information off of it. Sorry for the confusion and thanks. Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Not Sure Which Package has mssql_connect.
Greg Larkin writes: You referred to C code at the top of your message, That was actually incidental. I was thinking about what had happened when I transplanted some home-grown C code in to 8.1 and had to clean up some of my lazy habits to make it work again. So far, nothing I haven't been able to handle. but are you actually looking for a PHP extension that contains the mssql_connection function so some PHP code runs correctly? Yes. 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. In spite of my rather confused question, that is exactly what I am doing. We talk to a remote mssql server and pull off new data from a database. 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. The first port is what I needed. Many thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org