Using PHP Logger

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
Infect The System
Posts: 45
Joined: Mon 13. Mar 2006, 03:19
Contact:

Using PHP Logger

Post by Infect The System »

Hello, after reading all the posts about different ways to use web statistics programs i decided to go with PHP Logger.

I installed and set it up with no problems.

But I am not 100% about where to insert the piece of code into my templates in order for the system to log the statistics. I have tried putting it in the html head, header, main body, and the footer with no luck.

I found once thing strange though, the system automatically sends you a .js file to upload to your server, and also give you a piece of code to insert into your pages. The piece of code it sent me was missing a /.

I installed the system into a folder named /webstats

The code it was given was this:

Code: Select all

<script language="JavaScript" type="text/javascript" src="pphlogger.js"></script>
<noscript><img alt="" src="http://www.XXXXXXXX.com/webstatspphlogger.php?id=ITSservices&st=img"></noscript>
If you notice in the URL path, there should be a / between webstats and pphlogger.php. That isint that big of a deal to add the /, but i am wondering if somewhere in a config file it is coded the same which would obviously prevent me from logging my site hits.

Anyone have any ideas on this? I really like this sytem and would rather not change to something else.
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Have you tried this?

http://www.phpwcms-docu.de/system_tags.phtml
{SITE}
Use: This tag adds the complete URL.
Notation: {SITE}index.php?hello
Result: http://www.phpwcms-docu.de/
Remark: Can be used for redirection. It's very helpful if you change the domain or build the site local.
Infect The System
Posts: 45
Joined: Mon 13. Mar 2006, 03:19
Contact:

Post by Infect The System »

Nope, but i will.

Oliver made it sound so easy to get this web stat system working with phpw. I guess it helps if your the one who wrote the system huh! :o
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post by juergen »

Hello,

you have:

Code: Select all

<script language="JavaScript" type="text/javascript" src="pphlogger.js"></script>
<noscript><img alt="" src="http://www.XXXXXXXX.com/webstatspphlogger.php?id=ITSservices&st=img"></noscript>
you should have:

Code: Select all

<script language="JavaScript" type="text/javascript" src="pphlogger.js"></script>
<noscript><img alt="" src="http://www.XXXXXXXX.com/webstats / pphlogger.php?id=ITSservices&st=img"></noscript>
I made the blanks inbetween the shlash, remove the blanks for shure...

If not working pm me

Jürgen
Infect The System
Posts: 45
Joined: Mon 13. Mar 2006, 03:19
Contact:

Post by Infect The System »

DF6IH wrote:Hello,

you have:

Code: Select all

<script language="JavaScript" type="text/javascript" src="pphlogger.js"></script>
<noscript><img alt="" src="http://www.XXXXXXXX.com/webstatspphlogger.php?id=ITSservices&st=img"></noscript>
you should have:

Code: Select all

<script language="JavaScript" type="text/javascript" src="pphlogger.js"></script>
<noscript><img alt="" src="http://www.XXXXXXXX.com/webstats / pphlogger.php?id=ITSservices&st=img"></noscript>
I made the blanks inbetween the shlash, remove the blanks for shure...

If not working pm me

Jürgen
Yea i actually found that, and it was the same thing in a javascript file i had to install on the server as well.

What happened was when i setup the script, i didnt add a trailing slash to the URL of the webstats folder. You would assume a script as good as this one would know to add the trailing slash, or even ignore it all together. But it did not, and i learned my lesson. Just had to go through and resetup the script and everything is ok now.
Post Reply