click counter not working

In case you have problems with some other PHPJunkyard script (not that there are THAT many).
Post Reply
odbob
Posts: 5
Joined: Sat May 19, 2007 10:55 am

click counter not working

Post by odbob »

Script URL:
Version of script: 1
Hosting company:awardspace
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

I have loaded graphcount, styles folder and created a logs folder. Have also included the code on my web page (index page) all as per instructions from Readme. But nothing, no error codes, nothing appears.
:cry:
Is it because award space is not compatable or is it worth pursuing this problem. Does it read javascript?

Maybe I am too much a novice :oops:
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Post the URL of your script and phpinfo.php and I will have a look.
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
odbob
Posts: 5
Joined: Sat May 19, 2007 10:55 am

click counter not working

Post by odbob »

Thanks for your response, the URL is www.myhomeenergy.co.uk/index.

I have placed the script at the bottom of this page.

phpinfo.php I don't understand (did I mention I'm a novice? :oops: ), I uploaded graphcount.php file into public folder, uploaded styles folder and within the phpgcount folder, created a new folder called logs, making sure it was world writable, all as instructed in your very clear instructions. but have obviously done something wrong :( One person on the award space furum had suggested that I remove reference to site names to get it working, but I have tried this without success. I fact over a number of hours, I have tried many variations and at all times have seen nothing no error messages, nothing.

You are obviously a very busy person and it seems unfair to burden you with this, particulary as it is more likely down to be my inexperience and so unless there is a fairly simple answer you can offer, maybe you should leave me to it, I'll get there at some time in the not too distant future 8)
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

The problem is the URL www.myhomeenergy.co.uk/phpgcount/graphcount.php doesn't exist. Double-check this URL, is graphcount.php really inside a folder called "phpgcount"? Check the name and keep in mind most servers have CaSe SeNsiTiVe folder names ("phpgcount" is not the same as "PHPGCOUNT").
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
odbob
Posts: 5
Joined: Sat May 19, 2007 10:55 am

Post by odbob »

Thanks for your reply, I have copied below, an extract from my public folder, you can see that logs folder, styles folder and graphcount are included. The graphcount ends with txt, trust this is as it should be. the graphcount file, I have altered a few times in an attempt to get some responce, even an error message would be good! One award space member said he had to omit his domain name from both the graphcount and the code that you enter on the page to get it to work, but I have tried this on a couple of occasions with other variations, without success

Options Name Size Type Date Modified Permissions [?]
- Folder May 19 07:11 drwxr-xr-x
- Folder May 19 07:11 drwxr-xr-x
logs - Folder May 17 18:06 drwxrwxrwx
styles - Folder May 18 11:21 drwxr-xr-x
graphcount.php.txt 3.71 KB TXT file May 22 18:28 -rwxr-xr-x
file size: 3.71 KB
Thanks again for your help, I really didn't expect this sort of help from a free software down load and would understand if you feel that you have given enough assistance to someone who is obviously not up to speed.
I will struggle on regardless
Regards Odbob
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Why would you have "graphcount.php.txt"? Rename that to EXACTLY graphcount.php ad it should work fine. It's important for the script to have .php extension so that the server recognizes the right software to run the script with (PHP).
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
odbob
Posts: 5
Joined: Sat May 19, 2007 10:55 am

click counter not working

Post by odbob »

Thanks again for your response, don't need to change the file name because it is already named as 'graphcount.php'
It is only when I place this file into the awardspace public folder, the 'txt' is added automatically ?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

That's probably some sort of a secuirty feature then, try CHMOD-ing the file to 755 and see if this works:
http://http//www.myhomeenergy.co.uk/php ... ?page=test

Also make sure the "logs" folder is at 777

If that doesn't work you will need to contact the host and ask why all PHP files are renamed to .txt and what CHMOD settings they require.
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
odbob
Posts: 5
Joined: Sat May 19, 2007 10:55 am

click counter not working

Post by odbob »

Brilliant help and advice, although I haven't quite sorted the problem, I at least have an indication of hits because where the digits should be, I have little red crosses on a white background and right clicking these, I am able to access the count to date. I am now confident that the path error is something that can be sorted and so it is now my intension to happily place a link to PHPjunkyard.com :D
Thanks again for your patience and help, I am now slightly less of a novice :)
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

The problem is $base_url in your graphcount.php, it is probably set to "http://www.myhomeenergy.co.uk/gcount" but in your case it should be "http://www.myhomeenergy.co.uk/phpgcount"
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
Post Reply