have to retrive the search history of an user..with php can any one help
how we can retrive browsing history through php??
Collapse
X
-
Tags: None
-
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. -
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.0Comment
-
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
rythmicComment
Comment