open(); /* print some header info */ echo "version: ".$table->version."
"; echo "foxpro: ".($table->foxpro?"yes":"no")."
"; echo "modifyDate: ".date("r",$table->modifyDate)."
"; echo "recordCount: ".$table->recordCount."
"; echo "headerLength: ".$table->headerLength."
"; echo "recordByteLength: ".$table->recordByteLength."
"; echo "inTransaction: ".($table->inTransaction?"yes":"no")."
"; echo "encrypted: ".($table->encrypted?"yes":"no")."
"; echo "mdxFlag: ".ord($table->mdxFlag)."
"; echo "languageCode: ".ord($table->languageCode)."
"; /* html output */ echo "
"; /* print column names */ echo ""; foreach ($table->getColumns() as $i=>$c) { echo ""; } echo ""; /* print records */ while ($record=$table->nextRecord()) { echo ""; foreach ($table->getColumns() as $i=>$c) { echo ""; } echo ""; } echo "
".$c->getName()." (".$c->getType()." ".$c->getLength().")
".$record->getString($c)."
"; /* close the table */ $table->close(); ?>