#!/usr/bin/perl
use Limixdb;
use DBI;
use CGI::Carp qw(fatalsToBrowser);
print "Content-type: text/html; charaset=UTF-8\n\n";
my $ddhh = new Limixdb;
$ddhh->setMethod('Pg', 'DB名');
my $dbh = $ddhh->sqlCon;
my $sth = $dbh->prepare("SELECT * FROM limix");
$sth->execute;
while(@lis = $sth->fetchrow_array){
print $lis[0], "\n";
print $lis[1], "\n\n";
}
my $Limix = new Limix;
$limixIndex = $Limix->limixIndex; $hostIp = $Limix->hostIp; __DATA__
package Limix;
sub new{
my $class = shift;
my $self = {};
bless $self, $class;
}
sub hostIp { return 'RH5.3@ESXのIPアドレス'; }
sub limixIndex {
my $ip = &hostIp();
my $limixurl = "http://$ip/index.html";
}
sub thisPath { my $thisPath = $ENV{'SCRIPT_FILENAME'}; }
1;
No User Commented In This Post
Leave A Reply.....