#!/usr/local/bin/php 1 && $argv[1] == 'authconf') { exit('yes'); } foreach ($table_list as $_str_schema_table) { $_ary_schema_table = explode('.',$_str_schema_table); $schema = $_ary_schema_table[0]; $table = $_ary_schema_table[1]; $text .= << 1 && $argv[1] == 'config') { $text = <<getTableSize($schema,$table); $data_length = $row['data_length']; echo "$table.value $data_length\n"; } class MysqlTblSize { private $dbh; public function __construct($dbh) { $this->dbh = $dbh; } public function getTableSize($schema,$table) { $bind = array($schema,$table); $sql = <<dbh->prepare($sql); $stmt->execute($bind); return $row = $stmt->fetch(PDO::FETCH_ASSOC); } public function getSchemaSize($schema) { $bind = array($schema); $sql = <<dbh->prepare($sql); $stmt->execute($bind); return $row = $stmt->fetch(PDO::FETCH_ASSOC); } }