Clinton Gormley wrote:
Clint,
I changed the header I sent from text/html to text/plain and the
segfaulting no longer occuring.
It's more likely to be the headers your server is receiving (eg cookie?)
than the headers it is sending.
Clint, I removed sending any cookies the following script works
repeatedly now, but when I umcomment the first 4 lines to take the
template from a file
then it segfaults again. Also when I tried to recompile apache since I
have a redhat rpm install of apache 2.0 and mod_perl when I try and
compile apache it complains about libapr already being there and exits.
#open(FILE, "< tpls/index.tpl");
#my @lines = <FILE>;
#close(FILE);
#my $shell = join("\n", @lines);
print("Content-type: text/html\r\n\r\n");
print qq(
THIS IS MY CONTENT <br />
THIS IS MY CONTENT <br />
THIS IS MY CONTENT <br />
THIS IS MY CONTENT <br />
THIS IS MY CONTENT <br />
<img src="images/invoice.gif">
);