Hello!
I have the following problem:
I want to write an application using the CGI-Interface and a Mysql -
Database.
I wrote the following small script to test my server. This script works
when running from the shell on my server but not when running as a
CGI-script.
#!/usr/bin/perl
#______________________ Module einbinden ______________________
use DBI;
#______________________ Deklrarationen ______________________
# Angaben f�r den Datenbank - Server
$data_source = "DBI:mysql:seminar";
$username = "nobody";
$password = "PASSWORD('')";
#______________________ Hauptprogram ______________________
# Datenbank �ffnen
# $dbh = DBI->connect($data_source, $username, $password) || die
$DBI::errstr;
@ary = DBI->available_drivers;
print "Content-type:text/html\n\n";
print "<html><head><title>Fehler!</title></head><body><center>";
print "<div align=center>";
print "<p> </p><p> </p>";
print "<font face=\"Arial, Helvetica\">";
print " <h2></h2>";
print "</font>";
print "<p> </p><p> </p>";
print "</div>";
print "</body></html>";
I am using a PC - Linux - Server running Perl 5.005.02. , DBI-1.02 ,
MySQL 3.21.33c for PC-Linux , msql-mysql-modules-1.2010 and Apache HTTP
Server Version 1.3 .
I noticed no installation-error, no tests on installing failed.
That's what "perl -V" tells me:
Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration:
Platform:
osname=linux, osvers=2.0.35, archname=i586-linux
uname='linux fspdlb135 2.0.35 #1 wed nov 18 13:16:52 met 1998 i586
unknown '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='cc', optimize='-O2', gccversion=2.7.2.1
cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lgdbm -ldb -ldl -lm -lc
libc=/lib/libc.so.5.4.46, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Built under linux
Compiled at Jan 12 1999 10:16:54
@INC:
/usr/lib/perl5/5.00502/i586-linux
/usr/lib/perl5/5.00502
/usr/lib/perl5/site_perl/5.005/i586-linux
/usr/lib/perl5/site_perl/5.005
.
I hope somebody has an idea oer allready fixed this problem.
Thanks for your support, Kilian
-----------------------------------------------------------
Send a mail to [EMAIL PROTECTED] with
unsubscribe mysql [EMAIL PROTECTED]
in the body of the message to unsubscribe from this list.