extension_dir=”c:\AppServ\php-5\ext\”
session.save_path=”c:\AppServ\Apache2\tmp”
$conn=ibase_connect("localhost:C:\\AppServ\\www\\fdb\\MUSICA.FDB", "SYSDBA", "masterkey"); if (!$conn) { echo "Acceso Denegado!"; exit; }
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”> <html> <head> <title>Untitled Document</title> <meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1?> </head> <body> <?php $conn=ibase_connect("localhost:C:\\AppServ\\www\\fdb\\MUSICA.FDB", "SYSDBA", "masterkey"); if (!$conn) { echo "Acceso Denegado!"; exit; } $query="select ARTISTA from ARTISTAS;"; $result=ibase_query($conn,$query); if (!$result) { echo "no se puede mostrar datos desde la consulta: $query!"; exit; } $row=ibase_fetch_object($result); while ($row = ibase_fetch_object ($result)) { ?> <table width="200" border="1"> <tr> <td><? echo "$row->ARTISTA"; ?></td> </tr> </table> <? } ?> <p> </p> </body> </html>
Gracias por la pronta respuesta, si efectivamente habia hecho eso incluso reinicie el equipo y no me funciona.que podra ser... me puedes ayudar ?gracias
De nuevo gracias enecumene por sus sabios consejos, efectivamente no se porque extraña razon en la version de Appserv 2.6 no se puede configurar firebird, pero instale el appserver 2.5.10 y me funciono, en el info de php mustra la informacion de interbase, ahora me toca es conectarme desde php. cualquier duda los sigo molestado.gracias
<?php$path = 'C:\EMPLOYEE.FDB'; ó $path = 'localhost:C:\EMPLOYEE.FDB';$usuario = 'SYSDBA';$password = 'masterkey';$dbhd = ibase_connect ($path, $usuario, $password);$sql = 'SELECT * FROM EMPLOYEE';$consulta = ibase_query ($dbhd, $sql);while ($fila = ibase_fetch_object ($consulta)){print $fila->EMP_NO . "\n"; }ibase_close ($dbhd);?>
print '<div>' . $fila->EMP_NO . '</div><br />';
$qryCia="select c_curso,d_curso from cursos where c_st='A' order by d_curso"; //primero haces la consulta$resCia= ifx_prepare($qryCia,$conecta,IFX_SCROLL); //en informix //preparas conexi'on al motor cualquiera que tu tengas claro estaifx_do($resCia); //se realiza conexion con todo y la consultawhile ($filaCia=ifx_fetch_row($resCia,"NEXT")){//desplegado de los //registros e impresion y ya estuvoecho $filaCia[c_curso]."-".$filaCia[d_curso]."<br>";}
$path = 'C:\EMPLOYEE.FDB'; ó $path = 'localhost:C:\EMPLOYEE.FDB';
$path = 'localhost:C:\\EMPLOYEE.FDB';