|
发表于 2003-1-30 16:42:22
|
显示全部楼层
WHAT YOU NEED TO DO:
你需要做的事
It's all fairly simple:
以下都很容易做到
1 - create a database in MySQL with whatever name you like.
建立一个数据库(名字由你定)
个人建议:Mysql的数据库名称是有限制的,不能以数字开头,不能有空格、下划线、标点符号等等
2 - create the tables defined in stats.sql within this database either by importing this file (phpMyAdmin or commandline:
mysql --user=*** -p databasename < stats.sql) or by hand.
建立一个表(当然是在你刚才建的那个数据库里),并且导入stats.sql里的数据
phpMyAdmin或者用命令方式:mysql --user=(你的可操作mysql的用户) -p (你刚才建的数据库名称) < stats.sql
3 - copy *all* the files to your server root
拷贝所有文件到你的根
(什么东东?你不会是在做论坛吧?)
4 - edit the config.inc.php file to meet your system settings.
编辑config.inc.php,里面有你要设置的东东
5 - put [ include "functions.inc.php"; ] on the pages you want to have monitored, for instance in a header file.
把 include "functions.inc.php"; 放到(config.inc.php)里面, 这样才能加载头文件
6 - put the PHP-Code <? counter(); ?> on a place of your site if you want to have the counter.
如果你要计数器, 那么再加一句 <? counter(); ?>
7 - point your browser to where stats.php is located, and see what happens!
现在可以浏览你的 stats.php , 看看有什么效果?
------------------------------
乱翻的, 别笑我 |
|