ASP => PHP

From: Date: Tue, 05 Sep 2000 18:29:35 +0000
Subject: ASP => PHP
Groups: php.migration 
Request: Send a blank email to php-migration+get-51@lists.php.net to get a copy of this message
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

« previous php.migration (#51) next »