6
"host" => "192.168.25.6",
7
"port" => 10387, // could be found trough mmc console
10
"database" => array ("IK016032_KATRIN#Hauptpektrometer_TLG_F_200707252200")
16
"host" => "192.168.25.7",
17
"port" => 1066, // could be found trough mmc console
20
"database" => array ("CC_ExternalBrowsing")
28
function ConvertWinCC(&$source, $db) {
29
$con = mssql_connect ("WinCC", "zeus", "zeus");
30
mssql_select_db("CC_ExternalBrowsing", $con);
31
$res = mssql_query("SELECT * FROM TagCompressed");
32
while ($row = mssql_fetch_array($result)){
33
echo $row['BinValues'];
38
$dbh = new PDO ($source['driver'] . ":host=" . $source['host'] . ($source['port']?(":" . $source['port']):"") . ";dbname=" . $db, $source['user'], $source['pass']);
39
$res = $dbh->query("SELECT * from TagCompressed");
40
foreach ($res as $row) {
42
echo($row['BinValues']);
47
} catch (PDOException $e) {
48
echo "PDO Exception: " . $e->getMessage() . "<br/>";
55
foreach ($source['database'] as $db) {
56
ConvertWinCC($source, $db);
b'\\ No newline at end of file'