Fatal error: Call to undefined function dba_open() in C:\Apache2\htdocs\ejemplo1.php on line 23
el codigo es el siguiente:
Código:
<!— ejemplo1.php —>
<HTML>
<HEAD>
<TITLE>titulo</TITLE>
</HEAD>
<BODY>
<?php
// Set the db parameters
$dbPath = "myDatabase.db";
$dbType = "db3";
function CreateDatabase($thePath, $theType)
{
$db = dba_open($thePath, "c", $theType);
if(!$db)
{
printf("Could not create the database");
return 0;
}
return $db;
}
function OpenDatabase($thePath, $theType)
{
$db = dba_open($thePath, "r", $theType);
if(!$db)
{
printf("Could not open the database");
return 0;
}
return $db;
}
// Open the database, if it isn’t there, create it
$db = OpenDatabase($dbPath, $dbType);
if(!$db)
{
$db = CreateDatabase($dbPath, $dbType);
if(!$db)
{
exit;
}
}
?>
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE>titulo</TITLE>
</HEAD>
<BODY>
<?php
// Set the db parameters
$dbPath = "myDatabase.db";
$dbType = "db3";
function CreateDatabase($thePath, $theType)
{
$db = dba_open($thePath, "c", $theType);
if(!$db)
{
printf("Could not create the database");
return 0;
}
return $db;
}
function OpenDatabase($thePath, $theType)
{
$db = dba_open($thePath, "r", $theType);
if(!$db)
{
printf("Could not open the database");
return 0;
}
return $db;
}
// Open the database, if it isn’t there, create it
$db = OpenDatabase($dbPath, $dbType);
if(!$db)
{
$db = CreateDatabase($dbPath, $dbType);
if(!$db)
{
exit;
}
}
?>
</BODY>
</HTML>
no se que sucede, en el php.ini ya quite los ; a
extension=php_dba.dll
extension=php_dbase.dll
extension=php_gd2.dll
extension=php_sockets.dll
alguien sabe que sucede??
suerte y gracias por adelantado.