in reply to Re^2: From php to perl + template solution
in thread From php to perl + template solution

I was thinking of something like this:

URL a user enters:


mod_perl maps this into:


or even:


(this is how it will look if you use CGI::Application. I suggest get this working first, then add a .htaccess file in your cgi-bin directory to add the mod_perl mod_rewrite stuff afterwords.)

The script reads in template "page1.html", figures out the counter value, inserts it, and displays the page.

All the template files should be in a special directory, not under the document root, so there's no way a user can point their browser to the "real" page1.html.

update: corrected typo

  • Comment on Re^3: From php to perl + template solution

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.