Page 1 of 1

Can not get Hit counter to work

Posted: Thu Oct 25, 2007 11:21 pm
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!!!

Posted: Fri Oct 26, 2007 8:09 am
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.

Posted: Sat Oct 27, 2007 10:26 am
by TonyK
Brilliant!
That did it. I am an idiot. Great script. Thanks for your help.