donglikuang8145 2016-04-20 05:26
浏览 53

是否可以获取访客详细信息,包括他们来自的页面的详细信息?

I am working on a project where I am sending daily emails to my clients, These emails contain the details of the pages they want to visit. Now what I am looking to do is that when the user visits these suggested pages, their details gets stored in the database.

For example, I have sent www.example.com/test as an email to many of my clients, Now when one of these client visits the page www.example.com/test, it gets the details of the visitor and the log of this visit gets stored.

No | email       | visits | time               |
1  |abc@test.com |   1    |20-04-2016 10:00:05 |
2  |xyz@test.com |   3    |20-04-2016 11:00:05 |
  • 写回答

3条回答 默认 最新

  • dream_life5200 2016-04-20 05:36
    关注

    You can take this information from $_SERVER var

    http://php.net/manual/en/reserved.variables.server.php

    $_SERVER['HTTP_REFERER'] - The address of the page (if any) which referred the user agent to the current page

    评论

报告相同问题?

悬赏问题

  • ¥15 Oracle中如何从clob类型截取特定字符串后面的字符
  • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
  • ¥15 MATLAB中streamslice问题
  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序