Hi,
I am fairly new to Linux, and need some help please.
I have RH9 2.4.20-8, and PHP 4.2.2 installed.
I am writing some PHP pages, to read info from some databases. I have no problem accessing data from MySQL, so that is fine. I need to access an MSSQL server we have, and before you ask I cannot move the data over to MySQL as to much relies on it already.
I have installed and configured the FreeTDS, and this works fine as I can connect to our MSSQL server on a Win2K box using the tsql command....so I know the link between Linux and the SQL Server is working.
When I try to connect to the MSSQL server in PHP I get the following error:
Fatal error: Call to undefined function: mssql_connect() in /var/www/html/test/test.php on line 11
Lince 11 of my code is: $conn=mssql_connect('MSSQLSERVER','user','password');
I have done a lot of reading, but keep going round in circles.
I believe that all I need to do is enable the option: --with-sybase=/var/local/freetds
I am not sure of the easiest way to achieve this, and I certainly don't want to change/mess up anything that is already working.
Apache and PHP were installed as part of the main install from the RH9 CD's, if that information is needed.
Can someone give me some detailed help/advice please, or point me in the right direction, the more detailed the better.
Many thanks in advance.
Paul.