Script URL:
Version of script: gcount131
Hosting company: xtremesurf
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: hit counter
Write your message below:
Hello Klemen:
The graphical hit counter has been working well on my cousin's website's welcome page, http://www.guyarseneau.com . Last month and again today however, the unique hits that had reached 237913 suddenly dropped to 43. Manually I reset them to the right number they were. Would you please let me know what I may have wrongly configured to cause such an error, and what can I do to prevent it from happening again?
Thank you and regards,
BillyJoe
PS - BTW, I'm the same Billy Joe that several years ago you helped place two additional images on the graphical hit counter in order to form different sections of a guitar to integrate on my website.
Hit Counter
Re: Hit Counter
Hi,
This happens if the text database gets corrupted.
However, are you sure you are using the latest version, it should be fairly resistant to it? Tr opening the counter PHP file on the server in a plain text editor and see what the "Version:" line says.
This happens if the text database gets corrupted.
However, are you sure you are using the latest version, it should be fairly resistant to it? Tr opening the counter PHP file on the server in a plain text editor and see what the "Version:" line says.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: Hit Counter
Hello Klemen:
Sure enough, you thought correctly regarding the version number. I thought I had upgraded to 1.31 because I've had that file on my side since you made the upgrade. Problem is, it seems I never uploaded that version onto the server. The file on the server was still version 1.1.
Now that the correct file, 1.31, is on the server, it didn't show with everything on 666 permissions. I had to set everything at 755 permissions in order to see the counter.
Also, the counter numbers are now displaying vertically instead of horizontally (as they did with previous version). What can I do? This happened before and I did something that fixed it -- but now I can't remember what it was! Please help?
The website is www.guyarseneau.com, and the counter is on the Welcome, or spash page.
Thank you Klemen,
Billy Joe
Sure enough, you thought correctly regarding the version number. I thought I had upgraded to 1.31 because I've had that file on my side since you made the upgrade. Problem is, it seems I never uploaded that version onto the server. The file on the server was still version 1.1.
Now that the correct file, 1.31, is on the server, it didn't show with everything on 666 permissions. I had to set everything at 755 permissions in order to see the counter.
Also, the counter numbers are now displaying vertically instead of horizontally (as they did with previous version). What can I do? This happened before and I did something that fixed it -- but now I can't remember what it was! Please help?
The website is www.guyarseneau.com, and the counter is on the Welcome, or spash page.
Thank you Klemen,
Billy Joe
billyjoe
Re: Hit Counter
Hello again Klemen:
By substituting this line in the new version...
with this line from the older 1.1 version...
it seems to fix everything. The numbers of the counter now display correctly, horizontally. I don't remember how or where I got this line, but, is it ok to use it on the new version?
What about having to keep permissions at 755, otherwise the counter display?
Regards,
Billy Joe
By substituting this line in the new version...
Code: Select all
echo 'document.write(\'<img src="'.$base_url . $style_dir . substr($count,$i,1) . '.' . $ext .'" border="0" />\');';
}
Code: Select all
echo 'document.write(\'<img src="'.$base_url . $style_dir . substr($count,$i,1) . '.' . $ext .'" style="max-width:10%; height:auto;" border="0" alt="Visitors">\');';
}
it seems to fix everything. The numbers of the counter now display correctly, horizontally. I don't remember how or where I got this line, but, is it ok to use it on the new version?
What about having to keep permissions at 755, otherwise the counter display?
Regards,
Billy Joe
billyjoe
Re: Hit Counter
Sure, that's just the outputted Javascript and it can be formatted in any way you like.
I'm not sure about the permissions, this depends on the server. However, if it worked with old ones before I see no reason why it wouldn't with 1.3.1. Perhaps you should try a clean installation in a new folder and see if that helps?
I'm not sure about the permissions, this depends on the server. However, if it worked with old ones before I see no reason why it wouldn't with 1.3.1. Perhaps you should try a clean installation in a new folder and see if that helps?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: Hit Counter
Thanks very much Klemen.
Regarding permissions, the requirement must be as you say, due to the server. The counter will
display only with 755 permissions. So long as it's safe and doesn't invite hackers I guess it's OK.
Please have an espresso or a beer on me.
Regards,
Billy Joe
Regarding permissions, the requirement must be as you say, due to the server. The counter will
display only with 755 permissions. So long as it's safe and doesn't invite hackers I guess it's OK.
Please have an espresso or a beer on me.
Regards,
Billy Joe
billyjoe