Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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? __________________

In reply to From php to perl + template solution by Nik

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • 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> <u> <ul>
  • 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 intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 05:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found