tags:

views:

42

answers:

1

Hi,

I am loading "myscript.php" to a div.

When i use $_SERVER['REQUEST_URI'] in myscript.php, it prints myscript.php's url.

how can i print the page's url that myscript.php is loaded into ?

thanks

+3  A: 

maybe this?

echo $_SERVER['HTTP_REFERER'];
apis17