3 Einträge, 1 Seite |
1
2
3
4
5
6
7
#!/usr/bin/perl -w
use DBI;
#$dbh = DBI->connect(dbi:mysql:database="DB111111";host="rdbms.strato.de";port="3306", "U111111", "passwort");
print "Content-type: text/html\n\n";
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/perl
use strict;
use warnings;
use CGI;
use CGI::Carp qw/fatalsToBrowser/;
use DBI;
my %DB={
base =>'DB111111',
host =>'rdbms.strato.de',
port =>'3306',
user =>'U111111',
passwd =>'passwort'
};
my $dbh = DBI->connect("DBI:mysql:database=$DB{base};host=$DB{host};port=$DB{port}",$DB{user},$DB{passwd}) or die $DBI::errstr;
my $cgi = CGI::new();
print $cgi->header();
$dbh->disconnect;
3 Einträge, 1 Seite |