in reply to CGI , HTML
$htmlsource =~ s/<title>/$title/g; But if you're getting a lot of page hits, that's a *bad* thing. Another cheap option is to include the page source within its own '.cgi' file and "requre" it.
#INSIDE HEADER.CGI print " <html> <head> <title>$title</title> </head> </body> "; } #INSIDE INDEX.CGI require "header.cgi";
this is a bit faster but a bit more cumbersome to incorporate page design into. Then there's always HTML::Template, but I dont have the permissions on my server to try it out. Anyhoo, tha'ts alls I gots.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: CGI , HTML
by freddo411 (Chaplain) on Oct 24, 2003 at 21:03 UTC | |
by jeffa (Bishop) on Oct 25, 2003 at 13:01 UTC |