php5 and SQL Scripts

Bill Moran wmoran at
Mon Apr 2 20:07:41 UTC 2007

In response to Martin McCormick <martin at>:

> 	About 4 years ago, we installed php from the FreeBSD
> ports collection on a system in order to query a MS-SQL data
> base on another server.  It worked fine until we upgraded to
> FreeBSD6.2 and php5.  I had moved the old binary across and also pulled several
> libraries in to /usr/local/lib and the old binary seemed to be
> happy until we actually tried to use it at which time it hung
> until manually killed.
> 	After installing /usr/ports/lang/php5 and even trying
> /usr/ports/lang/php4, our new php gives the following error:
> Fatal error: Call to undefined function mssql_connect()

Install /usr/ports/databases/php5-mssql

Don't know what you're doing with all that "moving binaries around", but
make sure you didn't overwrite something.  If you did, you may need to
completely reinstall PHP.

Bill Moran

More information about the freebsd-questions mailing list