MrCromeDome has asked for the wisdom of the Perl Monks concerning the following question:
I've been developing the site on my Win2k machine, with Apache 1.3.20 and ActiveState Perl 5.6.1.628. I had some of the stats pages done. . . they looked really good and worked well, so I thought I'd move them to my web server (Slackware 8.0, Apache 1.3.23, Perl 5.6.1) for people to admire. The scripts run fine there, but I have no data displayed. The graphics and tables generated come out exactly as intended, but no data is displayed from my CSV files. Even more strange, I'm not getting any errors generated. I've included some code below to give a feel for what I'm doing:
My connect() call doesn't error out, and I've displayed messages on the web page to show what directory the script was pulling files from to verify they were coming from the right spot (they were). I've even wrote a little script to get the list of tables being used, and all of my CSV files were listed. As a final effort, I made sure that all my unix file permissions were set properly, and again, they were.$sql = $filehandle->prepare($script) || die "Couldn't prepare SQL: " . $filehandle->errstr; $sql->execute() || die "Couldn't prepare SQL: " . $filehandle->errstr; while (my $row = $sql->fetchrow_hashref) { my %row_data; $row_data{TEAM} = $row->{'Team'}; push(@table, \%row_data); } $sql->finish();
What gives? Any clue as to what I'm doing wrong? Any insight is certainly appreciated.
Thanks,
MrCromeDome
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems using DBD::CSV
by lachoy (Parson) on Feb 14, 2002 at 16:45 UTC | |
by MrCromeDome (Deacon) on Feb 14, 2002 at 16:59 UTC | |
|
(jeffa) Re: Problems using DBD::CSV
by jeffa (Bishop) on Feb 14, 2002 at 16:27 UTC | |
by MrCromeDome (Deacon) on Feb 14, 2002 at 16:38 UTC | |
|
Re: Problems using DBD::CSV
by rdfield (Priest) on Feb 14, 2002 at 16:35 UTC |