This topic is locked

MSSQL connect problem

6/10/2005 6:00:37 AM
PHPRunner General questions
J
johnww author

I just installed V2. I was able to build a project using a connection to MS SQL. However, when I moved the files to my linux server, I have problems. Immediately after I finish with the login.php screen, I receive the following error messages:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/license/include/dbconnection.mssql.unix.php:274) in /var/www/html/license/login.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/license/include/dbconnection.mssql.unix.php:274) in /var/www/html/license/login.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/license/include/dbconnection.mssql.unix.php:274) in /var/www/html/license/login.php on line 54
The userid/password are hardcoded into php.
I have tested with both IE and Firefox and get the same error with both. I have also tested with check/uncheck box "Remember password". I get an error with different line numbers but includes same error on line 54.

Sergey Kornilov admin 6/10/2005

Hi,
please download this corrected file

http://www.asprunner.com/files/dbconnectio....mssql.unix.zip
and extract it to

C:\Program Files\PHPRunner\source\include

Then rebuild your project.
This file will be included in the next update of PHPRunner.

J
johnww author 6/10/2005

Now I receive this error:
Fatal error: Call to undefined function: mssql_connect() in /var/www/html/license/include/dbconnection.mssql.unix.php on line 5

Sergey Kornilov admin 6/10/2005

John,
it seems that your PHP is not compiled with MSSQL support.
Here are links that explain how to add MSSQL support to PHP.
http://www.php.net/mssql
http://www.freetds.org

J
johnww author 6/10/2005

Exactly right. I added freetds and php-mssql and it works perfectly now.

J
johnww author 6/16/2005

Everything fine still