RE: [PHP-WIN] mssql_connect
| From: | Carlos Andre Marques Moreira | Date: | Tue, 15 May 2001 22:21:07 +0000 |
| Subject: | RE: [PHP-WIN] mssql_connect | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-7599@lists.php.net to get a copy of this message | ||
Hi,
now i have the following configuration:
server1.domain.com -> winnt + apache + php4.0.4
server2.domain.com -> winnt + ms sql server 7.0
server3.domain.com -> windows 2000 + iis 5 + php3.0.15 + ms sql server 7.0
server4.domain.com -> win98 + omnihttpd2.08 + php4.0.4
I have a file teste.php that has this piece of code:
$conn_id = mssql_connect("server2.domain.com","login","password") or
die("Erro de Conexão!");
I have put this file on server1, server3 and server4
On server1 i get this:
Warning:MS SQL: Unable to connect to server: server2.domain.com
On server3 and server4 it works properly and i can retrieve the data i need.
I also have a file teste2.php that has this piece of code:
$conn_id = mssql_connect("server3.domain.com","login","password") or
die("Erro de Conexão!");
I have put this file on server1, server3 and server4
On server1 i get this:
Warning:MS SQL: Unable to connect to server: server3.domain.com
On server3 and server4 it works properly and i can retrieve the data i need.
So i guess the problem is with apache. Either it is a problem with apache
configuration or apache don't work with ms sql server 7.0
Any ideias? Am I missing simething?
Think it'll be better to change to iis, so i'll get things working quickly.
Thanks,
Carlos André Marques Moreira
camoreira@sfiec.org.br
Bolsista CNPq / RHAE
SENAI-CE/CETAE
2001 Ano Internacional do Voluntário