At 4:48 PM -0700 6/10/03, Maurice McCabe wrote:
The following code works when called using mod_perl. It does not work when
calling via embpcgi.pl. Does anyone have a suggestion why?

[-
use DBI;
use ZIPLoc;
$dbh = DBI->connect("DBI:mysql:locator", "root", "") || die "Can't connect:
$_";
($couponImage, $mimeType) = ZIPLoc::getCouponImage($dbh,
$fdat{'couponid'});
$req_rec->content_type('$mimeType');

Assome that your problem is there. Is there a request record without Apache? Try using $http_headers_out{CONTENT-TYPE} instead. -- Kee Hinckley http://www.messagefire.com/ Anti-Spam Service for your POP Account http://commons.somewhere.com/buzz/ Writings on Technology and Society

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to