-1
I have the following link:
<a target='_blank' class='btn-primary' href='exemplo/1/'> Clique Aqui </a>
I need every time the page containing this link is accessed by a different visitor ( IP ), change the number on the link.
I think it would be interesting to create a file
.txt
containing the numbers of each IP and the number each IP will be responsible for.
Example ( numbers.txt ):
123.456.789.00 - 1
321.543.765.99 - 2
543.210.456.22 - 3
435.647.533.33 - 4
And so consecutively...
I need it checked if the visitor’s IP is already on that list, if he is taking the number that is responsible for this IP and puts it on the link, if he is not, then the new IP is added to the list and aggregated the number that he will be responsible for and then placed on the link, being like this:
Example: The Visitor has an IP address 321.543.765.99
who was responsible for the 2
.
Then it will be displayed:
<a target='_blank' class='btn-primary' href='exemplo/2/'> Clique Aqui </a>
Is it possible to do this? How?
original: http://answall.com/questions/157907/fazer-bot%C3%A3o-a-alterar-href-a-cada-novo-acesso-em-determinada-p%C3%A1gina and related: http://answall.com/questions/167270/fazer-bot%C3%a3o-a-alterar-href-a-cada-novo-visitante-ip-ip-em-determinada-p%C3%a1g
– Daniel Omine
Daniel, the question here is another friend, please understand. This question is totally different.
– Alexandre Lopes
Yes.. because it didn’t say it was duplicated, but related. For others to understand the context behind it. Note also that it was not I who closed the other issue.
– Daniel Omine
Ah yes, thank you very much Daniel for understanding! : D Vlw msm
– Alexandre Lopes
so the importance in showing the originals.. Whoever takes the streetcar walking will interpret in a dispersed way.
– Daniel Omine
As it was demonstrated in the comments of the reply that the doubts are the same of the two previous duplicates, I closed to avoid the repeated excess of information spread on the site. I suggest not opening questions with others in progress, unless the subjects are in fact different (not just different versions of the text).
– Bacco