Uniquely identifying each & every html template

Ferrous Cranus nikos.gr33k at gmail.com
Tue Jan 22 07:49:31 CET 2013


Τη Τρίτη, 22 Ιανουαρίου 2013 6:04:09 π.μ. UTC+2, ο χρήστης Tim Roberts έγραψε:
> Ferrous Cranus <nikos.gr33k at gmail.com> wrote:
> 
> >
> 
> >Renames and  moves are performed, either by shell access or either by cPanel access by website owners.
> 
> >
> 
> >That being said i have no control on HOW and WHEN users alter their html pages.
> 
> 
> 
> Right, and that makes it impossible to solve this problem.
> 
> 
> 
> Think about some scenarios.  Let's say I have a web site with two pages:
> 
>     ~/web/page1.html
> 
>     ~/web/page2.html
> 
> 
> 
> Now let's say I use some editor to make a copy of page1 called page1a.html.
> 
>     ~/web/page1.html
> 
>     ~/web/page1a.html
> 
>     ~/web/page2.html
> 
> 
> 
> Should page1a.html be considered the same page as page1.html?  What if I
> 
> subsequently delete page1.html?  What if I don't?  How long will you wait
> 
> before deciding they are the same?
> 
> -- 
> 
> Tim Roberts, timr at probo.com
> 
> Providenza & Boekelheide, Inc.

You are right, it cannot be done.

So i have 2 options .

Either identify an .html file from its "filepath" or from its "hash".

Which method do you advice me to utilize?



More information about the Python-list mailing list