Print value of javascript in php
listed in answer
ANSWER:
you might not be looking at this the right way. you can see the current path in the url by looking at this variable
echo $_SERVER['REQUEST_URI'];
Update:
Since you want to prevent your site for being under an iframe, you can google frame busting script, it is done entirely in javascript.

New Comments