Hola amigos. Aprendiendo PHP (por necesidad)
Trabajo con Win10, Firebird 2.0, PHP 7, Apache NetBeans IDE 12.
Tengo este código que es una pantalla de Login:
Código:
<? include ("FBConexion.php")?>
<!DOCTYPE HTML>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<style>
table
{
border: 2px solid #353A46;
background-color: #CCD1D1;
}
input[type=text], input[type=password]
{
width: 100%;
padding: 8px 20px;
border: 2px solid #CCC;
box-sizing: border-box;
}
img{
width: 100px;
height: 100px;
}
label{
font-size: 14px;
font-weight: bold;
font-family: arial;
}
input[type=submit]{
background-color: #ccc;
color: black;
padding: 4px 10px;
margin: 8px 0px;
border: 2px solid;
cursor: pointer;
width: 40%;
}
</style>
<head>
<meta charset="UTF-8">
<title>Conexión al SisDLL 2.0</title>
</head>
<body>
<center>
<h2>"SISTEMA DE DISTRIBUCION"</h2>
<h2>SisDLL 2.0</h2>
<h2><p>Bienvenidos</p></h2>
<hr width=50%>
<form method="post" action="FBConexion.php">
<table>
<tr>
<td colspan="2"
style="background-color:#34495E;
padding-bottom: 5px;
padding-top: 5px;">
<center>
<p style="color:whitesmoke;">
<label>LOGIN</label>
</p>
</center>
</td>
</tr>
<tr>
<td
align="center" rowspan="5">
<img src="candado2.png"/>
</td>
<td>
<label>Usuario:</label>
</td>
</tr>
<tr>
<td>
<input type="text" name="txtusuario"/>
</td>
</tr>
<tr>
<td>
<label>Contraseña:</label>
</td>
</tr>
<tr>
<td>
<input type ="password" name="txtpassword" />
</td>
</tr>
<tr>
<td>
<input type="submit" value="Ingresar"/>
</td>
</tr>
</table>
</form>
</center>
</body>
</html>
Desde aqui estoy tratando de conectar a una BD de Firebird, con el siguiente código q esta en otro archivo "FBconexion.php":
Código:
<?
$dbHost="127.0.0.1";
$bbdd = ":c:\\Sis\\BD\\DB_DATOS.FDB";
$charset="utf8";
$dbUser="SYSDBA";//$_POST["txtusuario"];
$dbPass="masterkey";//$_POST["txtpassword"]; ;
$con = ibase_connect($dbHost.$bbdd,$dbUser, $dbPass,NULL,0,NULL,NULL);
if (!$con){
//echo "Acceso denegado!";
die("Las credenciales ingresadas no corresponden");
exit;
}
?>
Pero al hacer click en el botón
Código:
<form method="post" action="FBConexion.php">
que tengo asignado para eso me sale el siguiente mensaje:
Cita:
Esta página no funcionalocalhost no ha enviado ningún dato.
ERR_EMPTY_RESPONSE
|
Les comento que ya modifique el php.ini y descomenté "extension = pdo_firebird";
Agregue a las variables de entorno del sistema "c:\xampp\php\ext"
Q mas hará falta que no logro conectar??
Espero me puedan ayudar. Saludos y gracias.
PD. Cuando quiero levantar el servidor apache, no se puede, consulté el LOG y dice esto:
Cita:
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_firebird' (tried: C:\\xampp\\php\\ext\\pdo_firebird (No se puede encontrar el m\xc3\xb3dulo especificado.), C:\\xampp\\php\\ext\\php_pdo_firebird.dll (%1 no es una aplicaci\xc3\xb3n Win32 v\xc3\xa1lida.)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo_firebird.dll' (tried: C:\\xampp\\php\\ext\\php_pdo_firebird.dll (%1 no es una aplicaci\xc3\xb3n Win32 v\xc3\xa1lida.), C:\\xampp\\php\\ext\\php_php_pdo_firebird.dll.dll (No se puede encontrar el m\xc3\xb3dulo especificado.)) in Unknown on line 0
PHP Fatal error: Directive 'magic_quotes_sybase' is no longer available in PHP in Unknown on line 0
[Wed Jul 22 23:30:31.357141 2020] [:emerg] [pid 5872:tid 644] AH00020: Configuration Failed, exiting
|