My perl program is about counter adding displayingcounters for every webpage of my website
Every html page(like index.php) along with html code has near the bottom of the html code a php block of code that had a unique page identifier number like the following snippet, which when the execution of the program reached that part it gave that unique page number to MyCounter.php module to calculate the page's counter and thn print it.
$PageID = 1;
$counter = counter($PageID);
echo "<center><h4><font color='orange'>Number of counters: $counter
Now with the use of Perl + templates how the same thing is suppose to work?
The perl code when ready should dislay the following result as with php now: http://webville.gr/index.php
I need sepeartion between design and code leaving html pages intact.
But if a user clicks a random webpage how that webpage should invoke index.pl if the html page now has no php code in it?
Are you posting in the right place? Check out Where do I post X? to know for sure.
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
Want more info? How to link or
or How to display code and escape characters
are good places to start.