用户/页面跟踪 [英] user/page tracking

查看:60
本文介绍了用户/页面跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我只是想知道是否有人可以帮助我。我正在做一个构建社交网络的课程(到达那里!),我们应该添加一个管理元素,包括跟踪注册用户对页面的访问,包括他们的用户名,访问日期和时间,使用的浏览器,用户的IP地址和访问的页面。这将被放入报告中,然后可以按页面,用户和浏览器进行排序。


我是PHP编程的新手,并且在网上花了很多时间试图找到指导我的教程。这让我难以理解如何将所有这些信息请求到一个数组中并能够存储在数据库或文件中,然后通过对其进行排序来回显它。我们的服务器有限制写入txt文件,虽然我可以写入db。我找到的资源向我展示了获取IP地址等个别元素,但我还没有找到能帮助我获取所有这些信息的东西。我想我正在努力解决这个问题。


网站本身使用会话进行身份验证。


我希望有人可以提供帮助,非常感谢提前。

Hi,

I just wondered if anyone could help me at all. I''m doing a piece of coursework building a social network (which is getting there!), we are supposed to add an administration element to include tracking of access of pages by registered users to include their username, date and time of access, browser used, ip address of user and which page was accessed. This is to be put into a report to then be able to be sorted by page, user and by browser.

I''m fairly new to PHP programming and have used many hours online trying to find tutorials to guide me through. This has stumped me at how to request all this information into an array and being able to store in a db or file then echo this out with the ability to sort it. We have restrictions on our server to write to a txt file, though I can write to db fine. I''ve found resources that show me individual elements like getting the ip address etc, but I''m yet to find something that helps me to get all this information. I think I''m struggling with how to put it all together.

The site itself uses sessions for authentication.

I hope someone can help, many thanks in advance.

推荐答案

这是程序员帮助程序员而不是代码工厂的站点。因此,如果您希望我们的成员帮助您,请显示您目前已开发的代码,我们将查看并查看错误。


并且不要忘记附上任何内容您在适当的代码标签中显示的代码!


Ronald
This is a site for programmers helping programmers, not a code factory. So, if you want our members to help you, show the code you have developed so far and we will have a look and see what is wrong.

And do not forget to enclose any code you show, within the appropriate code tags!

Ronald


欢迎来到剧本!





好​​吧,我已经建立了具有注册/登录过程,上传图像系统,编辑个人资料区域,私人消息,开放论坛等的社交网站。


我陷入困境的部分是从跟踪成员用户访问它们的页面开始的时间,等等...我一直在寻找展示如何提取IP的教程地址或浏览器信息,虽然单独不在一起,所以它可以被制作成报告..


我不知道从哪里开始,是否需要一些跟踪功能页面??香港专业教育学院搜索跟踪等,只是让我困惑..


不要求代码,只是有点卡住如何处理这个..
Hi,

ok, i''ve already built the social network site that has a register/login process, upload image system, edit profile area, private messaging, open forum etc..

the part im stuck is where to start with tracking the members only pages by which user access them, when, etc... ive been looking for tutorials that show how to extract the IP address or browser information, though individually not together so that it could be made into a report..

im not sure where to start with this, whether there needs to be some tracking function with the pages?? ive searched for tracking etc and just is confusing me..

not asking for code, just a bit stuck as to how to approach this..


这篇关于用户/页面跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆