Skip to main content

Track previous link of a site in PHP

I just spotted through Google that Raj Shekhar has quoted my post to comp.lang.php in his Blog Ideas page:

mr_burns wrote:
> Is it possible to get the previous url. For example, if I am on page
> page01.php - and I then click to - page02.php - from page02.php, can
> use script to determine that I have come from page01.php? It doesnt
> have to be the entire url, even just the file name. Cheers

Add this line in the beginning of every script or possibly using a
global-common include file say config.php

output_add_rewrite_var('referer', htmlspecialchars($_SERVER['PHP_SELF']));

Comments

Popular posts from this blog

Humble Award - Dr. A.N. Sreevatsan

Dr. A.N. Sreevatsan , ENT specialist located in Adyar, Chennai is one of the gems available in medicines. No assistants in his consulting room and he'd take at least 15mins for every patients. So far I have referred many and all are happy with his approach. Every wannabe doctor should visit him personally to understand his approach. I wish him to be more famous than now. Update (2010-11-21) : Added link to Google Map Keywords : Sreevatsan, Srivatsan, ENT, Adyar, Chennai, Hospital, Doctor

Tamil Castes and Consolidation - Hacker Style Cheat Sheet

Tamil caste system and its hierarchies are complex and difficult to understand--due to different addressing systems. Similarly, the caste consolidation or grouping of similar or different castes under some title is extremely confusing. In many cases, the caste consolidation doesn't make any sense, but due to ulterior motives of politicians for their vote bank politics, these systems exist. So, to explain the system, I created a formula like cheat sheet: Vellalar = Pillai + Mudaliar + [Gounder] Pillai > Mudaliar ~ Gounder Thevar = Maravar + Kallar + [Agamudayar + [Senathipathi]] Senathipathi >>> Agamudiyar > Maravar ~ Kallar Agamudayar ~ Gounder Vanniyar = Padayachi + Gounder + [Naicker + [Reddy]] Naicker >>> Reddy > Padayachi ~ Gounder * Gounder is BC, Padayachi is MBC

Save American College, Madurai (Update 2011)

This article was written on Jan 16, 2011 and updated on Jan 26, 2011, Mar 16, 2011, Mar 21, 2011, Mar 28, 2011, Apr 10, 2011, and May 1, 2011 In 2008, I have written Save American College, Madurai that seemed to help many people including alumni to understand the situation, politics and chaos. At that time, I was favoring Principal's party as favoring Bishop's party could turn adverse as they're was already trying to replace non-permanent staffs; in fact, I have even donated a meager amount for the legal battle.[ Update : Corrected the sentence to convey the intended meaning. Thanks for those who pointed out] This time, people hit the same old article and asking the details. When I contacted, this time, nobody have clear reason for the chaos--except that it's a ego clash between Principal and Bishop party. Problems and reasons Till now, all bishops were being part of The American College, Madurai Governing Council. All/Most of the bishops played subtle r...