Hi..
We are providing free access to certain web pages to our customers because some sponsers will pay for that. For the convenience of the sponsers,we have to produce per url accounting to them.
for example: URL Total.no.of.bytes accessed
http://yahoo.com 23456
http://www.google.com 36786
one sponser will pay for yahoo.com and another will pay for google.com
so i'm getting the data from cache(access.log) and i am comparing it with free_webpage_list file. now i have to compare URLs like
com[/b]]http://www.yahoo.com from access.log file of cache and
co.in]http://www.mail.yahoo.co.in from free_webpage_list file,so i'm trying to compare "yahoo" in both the URLs. After comparing i have to calculate the bytes used for those webpages.
to retrieve yahoo from both the files i'm using this code. but it works only for 3digit country specific domain(.com,.edu,.net and so on) and 2+2 country specific domains(co.in,co.uk,co.us). Not for TLDs like cc.tx.us
any help will be greatly appreciated..
Thanks..
[ February 12, 2008: Message edited by: onequestion ]