perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 叶孤城 <Gucheng...@freenet.de>
Subject Re: problem with CSS in a dynamic document
Date Fri, 25 Sep 2009 12:26:27 GMT
2009/9/25 Chuck Crisler <charles.crisler@comcast.net>:
>
> use CGI;
> use DBI;
>
> my $query=new CGI;
> ...
> # output a document
> print $query->header();
> print $query->start_html(-title=>"Howdy",
>                         -style=>{-src=>'./dynamic.css'});
> print $query->h1('Form Data');
>
>
> Here is the contents of the file dynamic.css, which I located in the
> cgi-bin directory, which is where the perl script is also located.
>

You may want to put dynamic.css into apache's document directory
(/path/apache/htdocs) and change the corresponding line to:

 -style=>{-src=>'/dynamic.css'});

All files under cgi-bin are tried to executed by apache.

Mime
View raw message