Permalink
Browse files

Merge branch 'master' of github.com:sivann/itdb

  • Loading branch information...
2 parents c435fed + f5b476d commit d62c432948a8048d4ab7e0647a6cb43a240ec0bf root committed Mar 30, 2012
Showing with 22 additions and 3 deletions.
  1. +1 −1 CHANGELOG.txt
  2. BIN data/itdb.db
  3. +21 −2 phpinfo.php
View
@@ -6,7 +6,7 @@ LEGEND:
I:improvement
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:fixed browsing bug where same starting category was repeated on subtrees
View
Binary file not shown.
View
@@ -1,9 +1,28 @@
<?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();
// prints e.g. 'Current PHP version: 4.1.1'
-echo "<b>";
+echo "<br>\n<b>";
echo 'Current PHP version: ' . phpversion();
echo "<br>";
@@ -14,7 +33,7 @@
phpinfo();
-function parsePHPModules() {
+function parsePHPModules(){
ob_start();
phpinfo(INFO_MODULES);
$s = ob_get_contents();

0 comments on commit d62c432

Please sign in to comment.