in reply to Re^5: Using filepath method to identify an .html page
in thread Using filepath method to identify an .html page
And i'am sure it will work great!
Here is the .htaccess directives responsible to pass the actual .html page's absolute path to counter.py (please do not get mad at me, i'am trying to code your solution into python code, which is easier to me)
Wouldn't something like the following work as intended?
Here is the .htaccess directives responsible to pass the actual .html page's absolute path to counter.py (please do not get mad at me, i'am trying to code your solution into python code, which is easier to me)
But my friend, why bother creating a custom function?RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?superhost\.gr$ RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^/?(.+\.html) /cgi-bin/counter.py?htmlpage=%{REQUEST_FILEN +AME} [L,PT,QSA]
Wouldn't something like the following work as intended?
pin = int( htmlpage.encode("hex"), 16 ) % 10000
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^7: Using filepath method to identify an .html page
by blue_cowdawg (Monsignor) on Jan 22, 2013 at 18:13 UTC | |
by Nik (Initiate) on Jan 22, 2013 at 18:19 UTC | |
by blue_cowdawg (Monsignor) on Jan 22, 2013 at 19:23 UTC | |
by karlgoethebier (Abbot) on Jan 22, 2013 at 22:02 UTC |
In Section
Seekers of Perl Wisdom