Exemplo n.º 1
0
 function Close()
 {
     if ($this->m_pxdoc) {
         px_close($this->m_pxdoc);
         px_delete($this->m_pxdoc);
     }
     if ($this->m_fp) {
         fclose($this->m_fp);
     }
 }
Exemplo n.º 2
0
$fp = fopen($dirname . "/simpletest.db", "r");
px_open_fp($pxdoc, $fp);
$info = px_get_info($pxdoc);
if (getenv('REMOTE_ADDR') == "127.0.0.1") {
    echo "<b>Database: " . $dirname . "/simpletest.db</b><br /><br />";
}
echo "Database info: <pre>";
print_r($info);
echo "</pre><br />Number of fields: " . px_numfields($pxdoc) . "<br />\n";
echo "Number of records: " . px_numrecords($pxdoc) . "<br />\n";
echo "Database schema:<br /><pre>\n";
print_r(px_get_schema($pxdoc));
echo "</pre>\n";
px_close($pxdoc);
fclose($fp);
px_delete($pxdoc);
?>
<p>
<?php 
if (getenv('REMOTE_ADDR') == "127.0.0.1") {
    echo $TEXT['paradox-text3'] . $dirname . ". ";
}
?>
			<?php 
echo $TEXT['paradox-text4'];
?>
		
	    <?php 
include "../../showcode.php";
?>
	</body>