I have code like this in a Windows XP sys, w. Apache 1.3.27 and Perl 5.6.1:-
$formData = new CGI();
print $formData->header( -expires => 'now');
print $formData->start_html( -title => $title,
# -style => { 'src' => 'blah.css' },
-style => { 'code' => $css }, #
pre-filled with style specs
-bgcolor => '#FFFFCC',
-leftmargin => '30',
-topmargin => '20'
);
print $formData->h2( $title );
print $formData->h3( $message );
Using $css works fine, the new HTML page comes up with the desired styles.
But when I try the 'src' way instead, I get un-styled o/p, and two entries
in Apache error.log:-
[Wed Dec 08 10:30:01 2004] [error] [client ###.###.###.###] c:/program
files/perl_apache/apache/cgi-bin/fred/blah.css is not executable; ensure
interpreted scripts have "#!" first line
[Wed Dec 08 10:30:01 2004] [error] [client ###.###.###.###] couldn't spawn
child process: c:/program files/perl_apache/apache/cgi-bin/fred/blah.css
'blah.css' is in the same folder 'fred' as the script with the code snippet
above. I tried 'src' => '../blah.css', but that simply brought up the same
error, only in 'htdocs' iso 'fred'.
1) is there some appointed place for 'blah.css' other than where it is?
2) 'blah.css' contains only the CSS specs, nothing else. Is that as it
should be?
Rgds, GStC.