D
David Morel
Hi,
I am having trouble combining DBI and CGI.
Consider the following program:
#!/usr/local/bin/perl -w
use strict;
use DBI;
use CGI ':standard';
print "Content-type: text/plain\n\n";
print "abc\n";
my $dbh = DBI->connect("dbi:Oracle:ORCL", "username", "password");
print "123\n";
When I run the above program from a web browser, I get the output:
abc
When I run the above program from the command line, I get the output:
abc
123
In other words, it seems that when I run the script from the web it
stops immediately after it creates the database handle... but works
properly when run from the command line.
What gives?
Thank you,
David Morel
I am having trouble combining DBI and CGI.
Consider the following program:
#!/usr/local/bin/perl -w
use strict;
use DBI;
use CGI ':standard';
print "Content-type: text/plain\n\n";
print "abc\n";
my $dbh = DBI->connect("dbi:Oracle:ORCL", "username", "password");
print "123\n";
When I run the above program from a web browser, I get the output:
abc
When I run the above program from the command line, I get the output:
abc
123
In other words, it seems that when I run the script from the web it
stops immediately after it creates the database handle... but works
properly when run from the command line.
What gives?
Thank you,
David Morel