PHPee.com PHP development forum
summarize Search-Bot Hits

 
Post new topic   Reply to topic    phpee.com Forum Index -> Phlogger3 feature requests
View previous topic :: View next topic  
Author Message
arne



Joined: 15 Nov 2003
Posts: 5

PostPosted: Thu Nov 27, 2003 9:23 am    Post subject: summarize Search-Bot Hits Reply with quote
I just changed the log type from "js" to "phpjs". And of course I Am getting now several requests by search bots. But especially the googlebot searches from many different machines with different ip´s. And so I am getting a lot of one-entry-hits. It would be nice if all these hits of one day could be collected in one single entry to make the statistics a bit more viewable.
I would do it on my own, but I am not so familiar with PHP to do it Sad

Thanks
Arne
Back to top
View user's profile Send private message
Fridaynite



Joined: 04 Dec 2003
Posts: 3

PostPosted: Thu Dec 04, 2003 9:05 am    Post subject: Reply with quote
I just testet this code and it dont work.
the normal js works fine, but i want to see the search-enginebots.
PHP:

php$id
= "xxxx-de";
define('PPHL_SCRIPT_PATH', '/home/www/webxxx/html/xxxx.de/stats/');
$st = 'phpjs';
// $showme = 'y';
include(PPHL_SCRIPT_PATH."pphlogger.php");
?>


The error comes on this line:
PHP:
Parse error: parse error in /home/www/webxxx/html/xxx.de/xxx.php on line 101 ?>


which is the line of php$id = "xxxx-de";

can i solve this problem?

Thanks
Back to top
View user's profile Send private message Visit poster's website
sdjl
Moderator


Joined: 17 Nov 2003
Posts: 1024
Location: London, UK

PostPosted: Fri Dec 05, 2003 6:30 pm    Post subject: Reply with quote
Chgange the code to the following:

PHP:
$id = "xxxx-de";
define('PPHL_SCRIPT_PATH', '/home/www/webxxx/html/xxxx.de/stats/');
$st = 'phpjs';
// $showme = 'y';
include(PPHL_SCRIPT_PATH."pphlogger.php");
?>


Notice the change there?
the php part had slipped to down to before the variable.

David
_________________
-----
Free Logger Accounts | PPHlogger Manual | PM Me
Back to top
View user's profile Send private message Visit poster's website
Fridaynite



Joined: 04 Dec 2003
Posts: 3

PostPosted: Sat Dec 06, 2003 7:22 am    Post subject: Reply with quote
tomatos on my eyes Cool

Thanks a lot
Back to top
View user's profile Send private message Visit poster's website
Post new topic   Reply to topic    phpee.com Forum Index -> Phlogger3 feature requests All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB
Theme design based on Team 101 Designs, modified by Philip Iezzi