Ok, here's the actual problem:
1) I get the referrer path of a php script.
2) based on the referrer path I do an action
3) I used a switch to define actions from different paths, i.e.
www.example.com/a.php -> do this
www.example.com/b.php -> do that
THE PROBLEM WAS: that if I had a page like www.example.com/a.php?value=1, then the path was not recognized.
MY SOLUTION WAS:
case(strpos($referrer, 'http://www.example.com/a.php')) :
// action
break;
I dont know if that was the smartes way to do it but at least it is working. any feedback on my solution?