Re: ASP => PHP

From: Date: Wed, 06 Sep 2000 09:03:03 +0000
Subject: Re: ASP => PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15474@lists.php.net to get a copy of this message
I think it can do it use COM with php. But i haven't to try it. "Joseph Okomba" <Okomba@kabage.co.ke> wrote in message news:715DF98A936DD211B29D0008C71E55D445F4DF@NTSERVER1... > You will need to create your DSN beforehand (through the ODBC applet in the > Control Panel, assuming you're using windows) to make the ODBC connection. > ADO works a bit differently since it can connect natively to MS Access. PHP > will check the system for DSN before making an ODBC connection. > > Cheers. > > > -----Original Message----- > > From: alacr@carneiroramos.com.br [SMTP:alacr@carneiroramos.com.br] > > Sent: Tuesday, September 05, 2000 9:29 PM > > To: php-general@lists.php.net > > Subject: [PHP] ASP => PHP > > > > Please, help me ! > > > > Como transformar os comandos abaixo (ASP) para (PHP) ? > > > > In ASP : > > > > <% > > set conntemp=server.createobject("adodb.connection") > > cnpath="DBQ=" & server.mappath("alacr.mdb") > > conntemp.Open "DRIVER={Microsoft Access Driver (*.mdb)}; " & cnpath > > . > > . > > conntemp.close > > %> > > > > In PHP : > > (DON'T WORK) I tried the following : > > > > <?php > > $cnpath = "DBQ=c:\apache\wwwroot\alacr.mdb"; > > $driver = "DRIVER={Microsoft Access Driver (*.mdb)}; "; > > $dsn = $driver.$cnpath; > > $usuario = ""; > > $senha = ""; > > $connect = odbc_pconnect($dsn, $usuario, $senha); > > . > > . > > odbc_close($connect); > > ?> > > > > Thank you > > Alvaro Luiz > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#15474) next »