how we can retrive browsing history through php??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • charrychiru
    New Member
    • Nov 2010
    • 2

    how we can retrive browsing history through php??

    have to retrive the search history of an user..with php can any one help
  • Aimee Bailey
    Recognized Expert New Member
    • Apr 2010
    • 197

    #2
    To get an answer you may need to clarify your question, if you mean the actual browser's navigation history, then you can't do it with php as php runs on the server. If however you wish to track a user through different pages on your website, you could use sessions.

    Please clarify.

    Aimee.

    Comment

    • charrychiru
      New Member
      • Nov 2010
      • 2

      #3
      yap dude..
      im currently pursuing final btech
      my project is personal search
      the concept behind that was
      need to create profile for individual user and retrive the pages regarding search history
      the concept was taken from web 3.0

      Comment

      • rythmic
        New Member
        • Feb 2010
        • 29

        #4
        You can't unless you log the searches in some persistence layer. And if you do log them it should be pretty straight forward.

        Just save each search, or page visit (confusing when you use both browsing history and search history as terminology) with timestamp and a record of which user performed the search. That way you can get ordered data and get lots of information such as navigation patterns, average time spent on pages and so forth.

        But if this is a question of browsing history from separate pages you'd need some combination of javascript and PHP (such as AJAX) to first get the users browsing history into a javascript array and then send that as a parameter to a php page where you can perform required actions on the data.

        Through that information you should be able to get plenty of search data from google searches for instance as they are all visible in the visited urls.

        But then again, to get more specified help you need to further specify your task.

        best regards
        rythmic

        Comment

        Working...