For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > May 2005 > RES: RES: [PHP-INSTALL] PHP on WIndows 2003 Web Edition









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RES: RES: [PHP-INSTALL] PHP on WIndows 2003 Web Edition
Maurit Pereira Fagundes

2005-05-10, 8:57 pm

Hello!

i tried that and did not work!
thanks anyway.

-----Mensagem original-----
De: mewsite@box6.illusionfxnet.com
[mailto:mewsite@box6.illusionfxnet.com]Em nome de Michael W.
Enviada em: ter=E7a-feira, 10 de maio de 2005 17:25
Para: Maurit Pereira Fagundes
Cc: disguised.jedi@gmail.com; php-install@lists.php.net
Assunto: Re: RES: [PHP-INSTALL] PHP on WIndows 2003 Web Edition
Prioridade: Alta


Try using $db =3D mssql_connect("server ip", "user", "password"). I =
think
that it's the correct syntax.

On Tue, May 10, 2005 2:07 pm, Maurit Pereira Fagundes said:
> Hi.
>
> I receive the following message --> Warning: mssql_connect(): Unable =

to
> connect to server: servername
>
> the php code to connect to the sql server is:
> (!$db=3Dmssql_connect("servername","user","password")
>
> ---------------------------------------------------------------
> i already tried the following sintax, but did not work:
>
> mssql_connect("SERVER\INSTANCE","UID","PWD");
> ou
> mssql_connect("SERVER\\INSTANCE","UID","PWD");
> ou
> mssql_connect("SERVER:PORT","UID","PWD");
> ou
> mssql_connect("SERVER,PORT","UID","PWD");
> ou
> mssql_connect("SERVER","UID","PWD");
> ---------------------------------------------------------------
>
> so i tried the following sintax: i created an OBDC before and the
> connection with sql server worked.
> <?
> $dsn=3D"odbc name";
> $username=3D"username";
> $password=3D"password";
> $sqlconnect=3Dodbc_connect($dsn,$usernam
e,$password) or die ( 'Can not
> connect to server' )
> ?>
>
> i want to understand why the first method did not work, please some =

help!
>
> Thanks in advance!
>
>
>
>
>
> -----Mensagem original-----
> De: disguised.jedi@gmail.com [mailto:disguised.jedi@gmail.com]
> Enviada em: ter=E7a-feira, 10 de maio de 2005 14:21
> Para: Maurit Pereira Fagundes
> Cc: php-install@lists.php.net
> Assunto: Re: [PHP-INSTALL] PHP on WIndows 2003 Web Edition
>
>
> On 5/9/05, Maurit Pereira Fagundes <MAURIT@fgv.br> wrote:
worked.[color=darkred]
had[color=darkred]
> /*
> I could help, except that I have no idea what is wrong! I need error
> messages, code, configuration files and the like if they are relavent
> in order to help you out! Post this and we can troubleshoot these
> things a lot better!
> */
>
> --
> disguised.jedi@gmail.com
>
> PHP rocks!
> "Knowledge is Power. Power Corrupts. Go to school, become evil"
>
> Disclaimer: Any disclaimer attached to this message may be ignored.
> However, I must say that the ENTIRE contents of this message are
> subject to other's criticism, corrections, and speculations.
>
> This message is Certified Virus Free
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com