Author |
Message |
20/01/2005 18:24:51
|
Anonymous
|
Hello all together!
This script doesn't work, but I don't know why.
My files are in
/logstat/gif
/logstat/logfiles
/logstat/log.gif
...
log.pl, stat.pl and ip.log are in
/cgi-bin/logstat/
My log.pl:
Ma stat.pl:
There are no error messages, but it doesn't log anything.
The code in my html-file:
May I delete these lines:
So, it's not HTML 4.01 transistonal.
Where is my mistake? I want use relavive paths, if it's possible.
|
|
20/01/2005 21:47:44
|
ET
Graduate
Joined: 21/02/2003 22:17:48
Messages: 179
Offline
|
Okay, first thing I see wrong is that the base_dir in both Log.pl and Stat.pl are not the same. Both of them need to be the full path.
/srv/www/htdocs/web82/html/logstat/logfiles
The other thing may be that you are trying to use relative paths - some times that works, some times it doesn't. At lot depends on how the cgi-bin has been set up on the server or by the webhost.
On the last javascript portion, you may take out the noscript portion, however it will not count people who do not have their javascript turned on when they arrive at your pages. The noscript portion forces, at the very least, a visit to be counted in the log as a "noscript" on your print out.
These are the things that stood out - not guaranteeing it will solve the problems.
Hoping that helps
|
|
20/01/2005 21:52:55
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Make sure you use the complete url in the url variables. and notand so forth for the rest of the url stuff.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
20/01/2005 22:59:37
|
Anonymous
|
Great! Thank you very much, it works @ET!
@Carbonize: Thank you for your answer, too, but it works now (with relative paths).
|
|
20/01/2005 23:01:15
|
Anonymous
|
One more thing. This script sais that I'm using the Internet Explorer, but I'm using firefox.
|
|
20/01/2005 23:03:09
|
Anonymous
|
Sorry, as I watched the statistics, another user was on my page an this user has git the IE.
Thank you.
|
|
21/01/2005 00:01:12
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
I wouldn't read to much into the browsers it says visitors use. Opera identifies it's self as Internet Explorer by default and it is easy to alter the user agent sent by Mozilla based web browsers/
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
21/01/2005 07:18:11
|
Matze
Newbie
Joined: 20/01/2005 23:14:01
Messages: 4
Offline
|
Does this mean, it's impossible to get the real browser names?
|
|
21/01/2005 07:40:22
|
ET
Graduate
Joined: 21/02/2003 22:17:48
Messages: 179
Offline
|
Not impossible - just takes work to write the script. See my other response to your other thread you started.
http://proxy2.de/forum/viewtopic.php?t=4131
|
|
21/01/2005 14:23:59
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Impossible, no. But unless you are going to start checking for DOM models using javascript then no you cannot.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
|