How to get path of my web page where I have installed that page. Through php $_SERVER. Suppose if my site is http://www.a1bpo.com/om/gold/guy/abc.php
I want this address dynamically.
Same way I want to know it dynamically.
Can u help me.
actually i am using this code:
<?php
$website_name=$_SERVER['HTTP_HOST'];
$path=$_SERVER[PHP_SELF];
echo "http://$website_name$path";
?>
but it shows current path of the file i need only path till last current working dir. i have used getcwd()
but it is not help full.
please help me.