View Full Version : funky mod_perl?
Dooley3D
06-10-2002, 08:51 AM
perl is automaticly adding the Content-type to all perl scripts... How can I remove this so that I can actualy use functional perl scripts?
Atjeu
06-10-2002, 03:44 PM
<BLOCKQUOTE>quote:</font><HR>Originally posted by Dooley3D:
perl is automaticly adding the Content-type to all perl scripts... How can I remove this so that I can actualy use functional perl scripts?<HR></BLOCKQUOTE>
what do you mean its adding the content type? perl cant arbitrarily automatically edit your scripts
Dooley3D
06-10-2002, 05:41 PM
When I do a simple
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "This is a test";
the output is (IE)
Content-type: text/html This is a test
Atjeu
06-11-2002, 11:25 AM
ok, that means it is not running it through the perl compiler. you need to setup apache so that it will execute using perl for the directory that you are locating these files in.
Dooley3D
06-12-2002, 06:55 AM
I figured out what the problem was.
In apache's httpd.conf you need to place the following code:
PerlSendHeader On
This checks to see if there is header information in the perl script and does not auto print it if it is there.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.