|
|
sybperl-l Archive
Up Prev Next
From: Roleigh Martin <rol at uhc dot com>
Subject: Re: Error: HTTPd: malformed header from script problem -- any
clues?
Date: Jan 6 1999 11:21PM
Mike,
This solved it (using the BEGIN...) -- Thanks!
By the way, did you ever get the package I mailed you?
Thanks again.
Roleigh
At 03:04 PM 01/05/1999 -0800, you wrote:
>>>>>> "Roleigh" == Roleigh Martin writes:
>
>Roleigh> But when I execute the below HTML (same HTML file) online
>Roleigh> (ie, the CGI script is executed via HTML-invoking), I get
>Roleigh> this output in my browser:
>
>Roleigh> 500 Server Error
>
>My bet is that the SYBASE environment variable is not set correctly in
>the script. The SYbase libraries need this variable to find the
>interfaces file.
>
>If you use the Apache http server you can set the variable in the
>httpd.conf file with the SetEnv directive, or you can set it in the
>script itself:
>
>BEGIN {
> $ENV{SYBASE} = '/the/sybase/home/directory';
>}
>
>use Sybase::DBlib;
>etc...
>
>Michael
>--
>Michael Peppler -||- Data Migrations Inc.
>mpeppler@mbay.net -||- http://www.mbay.net/~mpeppler
>Int. Sybase User Group -||- http://www.isug.com
>Sybase on Linux mailing list: ase-linux-list@isug.com
>
--
Roleigh Martin, Rt. MN012-N188 Opinions are mine not UHC |
Software Engineer Consultant AT&T voice: (612) 992-4592|
UHC, HealthCare System Services AT&T vmail: (612) 992-4592|
5901 Lincoln Drive FAX: (612) 992-7021|
Edina MN 55436 Email: rol@.uhc.com|
Y2k Page: http://ourworld.compuserve.com/homepages/roleigh_martin
( easy to remember alias is: http://webalias.com/roleigh )
(A Web Site that focuses on Y2k threat to core infrastructures.)
|