问题描述
我只是想知道是否有人可以帮助我。我正在做一个构建社交网络的课程(到达那里!),我们应该添加一个管理元素,包括跟踪注册用户对页面的访问,包括他们的用户名,访问日期和时间,使用的浏览器,用户的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.
推荐答案
这篇关于用户/页面跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!