host = '127.0.0.1'; $connection->username = 'librarian'; $connection->password = 'secret'; $connection->database = 'IBIS'; if (!$connection->connect()) { echo '
', describeError($connection->lastError), '
'; die(1); } $specification = '1..deposit/vdu.mnu'; $resource = $connection->readTextFile($specification); echo '', $resource, ''; $connection->disconnect(); } catch (Exception $exception) { echo "ОШИБКА: $exception"; }