trouble with DBI/CGI
From: David Morel (altalingua_at_hotmail.com)
Date: 11/30/03
- Next message: Gunnar Hjalmarsson: "Re: trouble with DBI/CGI"
- Previous message: Gunnar Hjalmarsson: "Re: redirect using location header does not work from an already redirected doc."
- Next in thread: Gunnar Hjalmarsson: "Re: trouble with DBI/CGI"
- Reply: Gunnar Hjalmarsson: "Re: trouble with DBI/CGI"
- Reply: Sam Holden: "Re: trouble with DBI/CGI"
- Reply: Juha Laiho: "Re: trouble with DBI/CGI"
- Reply: Ron Reidy: "Re: trouble with DBI/CGI"
- Reply: Sara: "Re: trouble with DBI/CGI"
- Reply: Juha Laiho: "Re: trouble with DBI/CGI"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Nov 2003 21:16:18 -0800
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
- Next message: Gunnar Hjalmarsson: "Re: trouble with DBI/CGI"
- Previous message: Gunnar Hjalmarsson: "Re: redirect using location header does not work from an already redirected doc."
- Next in thread: Gunnar Hjalmarsson: "Re: trouble with DBI/CGI"
- Reply: Gunnar Hjalmarsson: "Re: trouble with DBI/CGI"
- Reply: Sam Holden: "Re: trouble with DBI/CGI"
- Reply: Juha Laiho: "Re: trouble with DBI/CGI"
- Reply: Ron Reidy: "Re: trouble with DBI/CGI"
- Reply: Sara: "Re: trouble with DBI/CGI"
- Reply: Juha Laiho: "Re: trouble with DBI/CGI"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|