I am having trouble with a perl script that is running into segmentation faults (it is from a third party vendor) and their "support" pointed out that my Apache server is apparently sending header information, because their script shows "Content-Type: text/html" at the top of every page. While I don't think that would be causing their error, I would like to know why I can't output header information from the perl script. For example, the sample script
displays "Content-Type: text/html This is a test." on the browser screen.
I have mod_perl 1.21-10, PHP 4.0.3pl1, perl 5.00503-10 running on Apache 1.3.12-2 on Red Hat Linux 6.2. I tried removing the automatic content-type from my php.ini file just in case php was putting headers on everything, but that didn't work. Any suggestions about where this problem is coming from would be appreciated!
Code:
#!/usr/bin/perl
print "Content-Type: text/html\n\n";
print "This is a test.";
I have mod_perl 1.21-10, PHP 4.0.3pl1, perl 5.00503-10 running on Apache 1.3.12-2 on Red Hat Linux 6.2. I tried removing the automatic content-type from my php.ini file just in case php was putting headers on everything, but that didn't work. Any suggestions about where this problem is coming from would be appreciated!