[plug] Apache problem
russ at powerstech.com
Sun Jan 2 21:06:16 WST 2000
On Sun, 02 Jan 2000, Kenworthy Family wrote:
> I had the same problem with perl scripts created in a windows environment
> that generated html output. Apache/Perl choked on the dos carriage returns
> - I think the problem was not apache but perl under linux. I manually
> deleted them (cr) in a linux editor (one day i'll have to install dos2unix
> or similar)
Somebody on this list gave a nice little perl script for
while( <> )
Can't remember the author, but it's simple and works well
for me. :)
>and all was fine - make sure you get em all, as it only
took one > to cause a problem!
> Paul Wilson wrote:
> > > > BTW, the message 'Premature end of script headers' -- does that also
> > imply
> > > > that the HTML may not be complete? I'd been assuming that the mime
> > header
> > > > was somehow wrong. Maybe I been too blinkered !!
> > >
> > > Are you sending a blank line after headers?
> > > printf("Content-type: text/html%c%c",LF,LF);
> > Yup, certainly am.
> > Paul
More information about the plug