Print value of javascript in php

listed in answer

Print value of javascript in php
0 votes, 0.00 avg. rating (0% score)

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'];

Read More

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.

by Ibu from http://stackoverflow.com/questions/10486038