Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:sivann/itdb
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Mar 30, 2012
2 parents c435fed + f5b476d commit d62c432
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.txt
Expand Up @@ -6,7 +6,7 @@ LEGEND:
I:improvement I:improvement
B:bugfix B:bugfix


1.6 -> 1.7 19/01/2012 1.6 -> 1.7
------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------
B:removed date checking from buggy validation pugin and leaved it to B:removed date checking from buggy validation pugin and leaved it to
B:fixed browsing bug where same starting category was repeated on subtrees B:fixed browsing bug where same starting category was repeated on subtrees
Expand Down
Binary file removed data/itdb.db
Binary file not shown.
23 changes: 21 additions & 2 deletions phpinfo.php
@@ -1,9 +1,28 @@
<?php <?php


try {
$dbh = new PDO("sqlite:/tmp/test.db");
}
catch (PDOException $e) {
print "Open test database Error!: " . $e->getMessage() . "<br>";
}
$error = $dbh->errorInfo();
if($error[0] && isset($error[2])) echo "Error 00: ".$error[2]."<br>";



$attributes = array( "CLIENT_VERSION", "SERVER_VERSION");

foreach ($attributes as $val) {
echo "<b>PDO::ATTR_$val: ";
echo $dbh->getAttribute(constant("PDO::ATTR_$val")) . "</b><br>\n";
}


$modules=parsePHPModules(); $modules=parsePHPModules();


// prints e.g. 'Current PHP version: 4.1.1' // prints e.g. 'Current PHP version: 4.1.1'
echo "<b>"; echo "<br>\n<b>";
echo 'Current PHP version: ' . phpversion(); echo 'Current PHP version: ' . phpversion();
echo "<br>"; echo "<br>";


Expand All @@ -14,7 +33,7 @@


phpinfo(); phpinfo();


function parsePHPModules() { function parsePHPModules(){
ob_start(); ob_start();
phpinfo(INFO_MODULES); phpinfo(INFO_MODULES);
$s = ob_get_contents(); $s = ob_get_contents();
Expand Down

0 comments on commit d62c432

Please sign in to comment.