How Many links can ccount handle?
Posted: Mon May 30, 2005 1:23 am
Script URL:
Version of script: ccount
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem: Yes
Write your message below:
This is a great script. I'm using it for tracking and it allows me to put affiliate links on my pages without them getting deleted by Norton's ad blocking.
My question is, About how many links can ccount handle before you would notice a serious dgradation in performance. I realize that is a difficult question if you don't know the performance of the hosting server.
I am only concerned with performance with viewers clicking on links. I'm not worried about the admin panel performance.
I see that it reads through the file to find the right line, redirects to the proper URL and then rewrites the file. I would imagine that you could add several hundred links before things slowed down too much.
SECOND QUESTION
As you get more links, what happens when you get multiple users clicking on the same link at about the same time. I would think if you only have 10 or so links you probably would not run into a problem. I could see a problem if you had a larger file that was being written and you had a couple dozen people clicking on CCount links at the same time.
It looks like the redirect happens AFTER click.php tries to write to the log file. The problem I can see is that if it can't write the 'or die' kicks in and kills the execution before the redirect.
If we were less concerned about the count and more concerned with the redirect it looks like you could take the 'or die' out and ccount would redirect but not update the count. Does this sound right?
Thanks
chris Mendla
Version of script: ccount
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem: Yes
Write your message below:
This is a great script. I'm using it for tracking and it allows me to put affiliate links on my pages without them getting deleted by Norton's ad blocking.
My question is, About how many links can ccount handle before you would notice a serious dgradation in performance. I realize that is a difficult question if you don't know the performance of the hosting server.
I am only concerned with performance with viewers clicking on links. I'm not worried about the admin panel performance.
I see that it reads through the file to find the right line, redirects to the proper URL and then rewrites the file. I would imagine that you could add several hundred links before things slowed down too much.
SECOND QUESTION
As you get more links, what happens when you get multiple users clicking on the same link at about the same time. I would think if you only have 10 or so links you probably would not run into a problem. I could see a problem if you had a larger file that was being written and you had a couple dozen people clicking on CCount links at the same time.
It looks like the redirect happens AFTER click.php tries to write to the log file. The problem I can see is that if it can't write the 'or die' kicks in and kills the execution before the redirect.
If we were less concerned about the count and more concerned with the redirect it looks like you could take the 'or die' out and ccount would redirect but not update the count. Does this sound right?
Thanks
chris Mendla