how to integrate multiple pages?

In case you have problems with some other PHPJunkyard script (not that there are THAT many).
Post Reply
oswaldo
Posts: 5
Joined: Sun Feb 17, 2008 3:56 pm

how to integrate multiple pages?

Post by oswaldo »

Script URL:PHP graphical hit counter (PHPGcount)
Version of script: 1.1
Hosting company:startlogic
URL of phpinfo.php:http://www.phpjunkyard.com
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
Script works great, one question though, I have multiple pages. I can get the counter to work on my index page but not the other pages. I add the script to the individual pages, and each one had its own txt file on my webhost directory, example: page10.txt. the script is correct, I am cut and pasting. This is what I am adding to each additional page: <script language="Javascript" src="http://www.domain.com/counter/graphcoun ... age=page10"><!--
//--></script>
each page has its own unique "page=pagename" and of course the domain name is substituted with my own.

I guess I don't see the connection with the additional page and the index page.

thanks for any help
:D
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

If index page works fine there is no reason other pages wouldn't. If you for example use ?page=page10 make sure that page10.txt exists inside "logs" folder and that page10.txt is writable by scripts (on Linux don't forget to chmod it to 666).
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
oswaldo
Posts: 5
Joined: Sun Feb 17, 2008 3:56 pm

Post by oswaldo »

Thanks for the quick reply. I tried again but this time I get the actual script I pasted into the webpage editor appearing on the actual webpage. So i'm not sure what's going on. It could be the software I'm using. I'm trying to pinpoint the problem, thanks again.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Please post the link to your site and to the phpinfo.php page on your own site.
Then we could give you some more info.

Greetings,
Henrie
oswaldo
Posts: 5
Joined: Sun Feb 17, 2008 3:56 pm

script appears on page

Post by oswaldo »

This is the page, its page 10 of my website.

http://jalomo-munguia.com/page10.html

As I said, the index page has the same script accept it has the appropriate page designated.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You are missing some code. Now you have

Code: Select all

language="Javascript" src="http://jalomo-munguia.com/counter/graphcount.php?page=page10&style=fdb"><!--
//--></script>
Note that the

Code: Select all

<script 
is missing at the beginning. The correct code to use is:

Code: Select all

<script language="Javascript" src="http://jalomo-munguia.com/counter/graphcount.php?page=page10&style=fdb"><!--
//--></script>
The counter works fine, just tried opening the counter URL directly and it worked. Fix the code and you are all set.
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
oswaldo
Posts: 5
Joined: Sun Feb 17, 2008 3:56 pm

Post by oswaldo »

Thanks so much,
It works now. Love your software, especially when you get quick and good support.
Post Reply