Can not get Hit counter to work

In case you have problems with some other PHPJunkyard script (not that there are THAT many).
Post Reply
TonyK
Posts: 2
Joined: Thu Oct 25, 2007 1:02 pm

Can not get Hit counter to work

Post by TonyK »

Script URL:www.thelastword-music.co.uk/htdocs/phpg ... hcount.php
Version of script:1.0
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Have been through all the other threads on the forum about this still can’t resolve it.
I am by no means an expert, but…
Checked with my webhost - php is supported.

Have installed as per instructons – ie:

Set variables
$base_url http://www.thelastword-music.co.uk/htdocs/phpgcount/

Have not changed other variables yet

Saved the graphcount.php file.
Uploaded graphcount.php file into folder /htdocs/phpgcount , checked it goes as ASCII
Uploaded the "styles" folder into folder /htdocs/phpgcount/styles
Created a new folder htdocs/phpgcount/logs . Set as world-writable
All files are read, write and executable (777)
(also tried all above, same file/folder structure in cgi-bin and in root directory)

Used this code.
<SCRIPT LANGUAGE="Javascript" SRC="http://www.thelastword-music.co.uk/htdo ... ?page=home"><!--
//--></SCRIPT>
Saved web page as php not html. Is this correct?
Do not get any display on web page. I assume that a file should be created in the logs directory when the script is run. No file is created. Tried creating a file manually. Still nothing.

I feel its close but what am I doing wrong. Have been through the troubleshooting check list in the readme. Very frustrating as it looks like a great hit counter. Help please!!!
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

Remove "htdocs" from both the settings and your URL. Use just
http://www.thelastword-music.co.uk/phpgcount
(don't forget to change it inside graphcount.php!).

The page with the Javascript code doesn't have to be .php, can be simple .htm or .html.

You said "All files are read, write and executable (777)". If changing the URL as explained above works I suggest you delete all files and install it again. Only the logs folder must be 777, I don't recommend having any other files or folders set to 777.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
TonyK
Posts: 2
Joined: Thu Oct 25, 2007 1:02 pm

Post by TonyK »

Brilliant!
That did it. I am an idiot. Great script. Thanks for your help.
Post Reply