本文整理匯總了PHP中aql::free_database方法的典型用法代碼示例。如果您正苦於以下問題:PHP aql::free_database方法的具體用法?PHP aql::free_database怎麽用?PHP aql::free_database使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類aql
的用法示例。
在下文中一共展示了aql::free_database方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: elseif
if ($input == 'help') {
echo "List of all Interface commands : \n\n";
echo "help Display this help.\n";
echo "quit Quit AQLcli.\n";
echo "freedb free cached config file\n";
echo "select query select command.\n";
echo "alter query alter command.\n";
echo "update query update command.\n";
echo "insert query insert command.\n";
echo "use set basedir to load config.\n";
echo "delete query delete command.\n\n";
echo "for more help see http://www.freeiris.org/astconfquerylanguage\n\n";
} elseif ($input == 'quit') {
exit;
} elseif ($input == 'freedb') {
$aql->free_database();
echo "database freed.\n";
} elseif (preg_match('/^(select|alter|update|insert|delete|use) /i',$input)) {
$b1 = microtime(true);
$result = $aql->query($input);
$b2 = microtime(true);
if (!$result) {
echo $aql->get_error()."\n";
} else {
if (is_array($result)==true) {
echo "+-----------------+-------------------------------\n";
echo "+ SECTION +\n";
foreach ($result as $section => $dataref) {
echo "+-----------------+-------------------------------\n";
echo "+ $section";
if (strlen($section) <= 14) {