login me PHP se MS-SQL server 7
Panayotis Vryonis
vrypan at hellug.gr
Wed Dec 8 02:57:39 EET 1999
Spiros Bolis wrote:
> Paides geia xara,
> Yparxei enas MS-SQL server 7 poy epikoinwnei mesw ODBC drivers ths openlink me ena RedHat/ Apache 1.3.6/ PHP 3.0.9
> sxedon ola wraia mexri th stigmh poy bazeis lathos login h password sthn authentication forma
> To netscape tote petaei ena mhnyma toy styl: "the document contains no data"
> Debuging ston kwdika edei3e pws h ektelesh kolaei sth grammh
>
> $iConnect = odbc_connect("DSN=xxx;Uid=".$USERNAME.";Pwd=".$PASSWORD.";",$USERNAM
> E,$PASSWORD);
>
> opoy xxx to DSN entry sto arxeio /etc/udbc.ini (einai to shmeio poy pataei o ODBC drivers an telospantwn exw katalabei kala). Edw na shmeiwsw pws epeidh h openlink dinei dwrean toys drivers ths, to documentation einai apo anyparkto ews aisxro. to na ginoy
> n ta entries gia na bainei me to swsto password sth bash htan ena paixnidi sta tyfla.
>
> Kleinei to istoriko : h katastash loipon exei ws e3hs. An brethei kapoios mhxanismos toy styl
>
> try
> ....
> except
>
> (opws exei h Object Pascal ths Borland Delphi poy 3erw) to thema tha lythei giati h ektelesh ths PHP odbc_connect poy apotygxanei me to lathos password-username kai de gyrnaei sthn iConnect timh tha parakamfthei.
Den kserw an einai auto pou 8eleis, alla giati den dokimazeis
if (!$iConnect) { echo "<P>Pou einai to connection palio-NT?\n" ;}
else {
....
}
Panayotis.
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/lgu.html
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================
More information about the Linux-greek-users
mailing list