Voll Upload SGD Fachinformatiker PHP

This commit is contained in:
2026-06-03 13:46:32 +00:00
parent 1256ec2190
commit 84a568d89c
265 changed files with 9961 additions and 2 deletions
@@ -0,0 +1,26 @@
<?php
require("list.php");
try {
$pdo = new PDO("mysql:dbname=$dbname;host=$dbhost;charset=utf8", $dbuser, $dbpw);
} catch (PDOException) {
die ($e->getMassage());
}
$myAttributes = array (
"PDO::ATTR_CLIENT_VERSION",
"PDO::ATTR_CONNECTION_STATUS",
"PDO::ATTR_DRIVER_NAME",
"PDO::ATTR_ERRMODE",
"PDO::ATTR_SERVER_INFO",
"PDO::ATTR_SERVER_VERSION",
);
echo "<ul>\n";
foreach($myAttributes as $attribute) {
echo "<li>" .$attribute .": " .$pdo->getAttribute(constant($attribute)) . "</li>\n";
}
echo "</ul>\n";
?>