Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Uniquely identifying each & every html template

by Nik (Initiate)
on Jan 21, 2013 at 12:25 UTC ( [id://1014433]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # ====================================================================
    +================================ ============= 
    RewriteEngine On 
    RewriteCond %{REQUEST_FILENAME} -f 
    RewriteRule ^/?(.+\.html) /cgi-bin/counter.py?htmlpage=$1 [L,PT,QSA] 
    # ====================================================================
    +================================ =============
    
  2. or download this
    # ====================================================================
    +================================ ============= 
    # open current html template and get the page ID number 
    ...
    # find the ID of the file and store it 
    pin = re.match( r'<!-- (\d+) -->', firstline ).group(1) 
    # ====================================================================
    +================================ =============
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1014433]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-19 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found