2) Upload
Upload all the files required (see above) into a directory preferably called "googleactivity" so your link to googlebot.php would be
www.yourdomain.com/googleactivity/googlebot.php
3) CHMOD
The log file needs to be written to online, therefore you need to set the access permissions. For those that don't know; CHMOD is the Unix command and system call to change the access permissions of a file.
You must change the permissions (CHMOD) googlebot_log.txt to 777. If you do not how to do this try searching on Google or click on the links below corresponding to your FTP program:
Cute FTP
SmartFTP
WSFTP
4) Including the Script
a) The PHP Include Method (.php, .php3, .php4 pages)
To include the script within a PHP web page use the following code:
<? include("googleactivity/googlebot.php"); ?>
b) The SSI Include Method (.shtm, .shtml pages)
The SSI include method is similar to the PHP include method, the difference being the code used: (note: pick one that works)
<!--#include virtual="/googleactivity/googlebot.php" --> OR <!--#exec cgi="/googleactivity/googlebot.php" -->
Note: If you are executing this file using SSI, you must add the location of your PHP binary to the top of the googlebot.php (i.e. #!/usr/local/bin/php), and googlebot.php must be CHMOD 755.