Strict Standards: Non-static method MDB2::raiseError() should not be called statically in D:\xampp\php\PEAR\MDB2.php on line 518
Strict Standards: Non-static method PEAR::raiseError() should not be called statically in D:\xampp\php\PEAR\MDB2.php on line 577
Strict Standards: Non-static method MDB2::errorMessage() should not be called statically, assuming $this from incompatible context in D:\xampp\php\PEAR\MDB2.php on line 977
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in D:\xampp\php\PEAR\MDB2.php on line 746
Fatal error: Class 'MDB_Manager' not found in D:\xampp\htdocs\experto\pear_packages.php on line 9
Son pocos pero estan hay, ahora le muestro el codigo que he puesto:
Código PHP:
<?php
require_once("MDB2.php");
MDB2::loadFile("Manager");
// Nombre del fichero de nuestro esquema
$schema_file = "BaseDatos1.schema";
// Creamos un objeto de clase MDB Manager.
$Manager = new MDB_Manager();
$dsn = array (
"phptype" => "mysql",
"username" => "root",
"password" => "passwd",
"hostspec" => "localhost"
);
$Manager->connect($dsn);
$success = $Manager->updateDatabase($schema_file, $schema_file." .exitoso");
if(MDB::isError($success)){
echo "Error: ".$success->getMessage()."\n";
}
if (count($Manager->warnings) > 0) {
echo "WARNING:\n",implode($Manager->getWarnings(),"!\n"),"\n";
}
?>
a ver si me ayudan con este grupo de errores del PEAR tan jodones que son...
Saludos se lo agradesco por antemano. ¿Es bueno el PEAR ? NO LO SE! xD