Hi,
I want to get exect web root like
http://www.mydomain.com/admin/test
can i get all this?
You could use the following to get that:
$webroot = "http://". $SERVER['HTTP_HOST'] . $SERVER['PHP_SELF'];