8

DBD::Sybase cgi script

view full story
linux-howto

http://www.linuxquestions.org – Hi all, please look at the following sample code that execute some database connectivity functions using DBI perl module. Code: #!/usr/bin/perl BEGIN { $ENV{'SYBASE'} = '/usr/local/freetds'; $ENV{'LD_LIBRARY_PATH'} = '/usr/local/freetds/lib'; } use CGI; use CGI::Carp; use DBI; my $cgi = new CGI(); print $cgi->header(); my $cgi = new CGI(); my $path='/opt/ash/netcool'; my $hostname="192.168.2.95"; my $portno="4100"; my $database_name="NCOMS"; my $db_use (HowTos)