Page 1 of 1

how to integrate multiple pages?

Posted: Sun Feb 17, 2008 4:14 pm
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

Posted: Sun Feb 17, 2008 6:45 pm
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).

Posted: Tue Feb 19, 2008 11:29 pm
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.

Posted: Wed Feb 20, 2008 5:54 am
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

script appears on page

Posted: Wed Feb 20, 2008 2:08 pm
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.

Posted: Wed Feb 20, 2008 2:52 pm
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.

Posted: Wed Feb 20, 2008 4:23 pm
by oswaldo
Thanks so much,
It works now. Love your software, especially when you get quick and good support.