I want to be able to point out the URL path to the folder of the currently executing script.
For example I am in the URL.
http://mysite/websites/microlabs/index.php?
When I execute the following line...
<?php
print $HTTP_SERVER_VARS['HTTP_HOST'];
?>
...I only get the following result:
mysite
what I want is the path to the folder of the currently executing script. In other words in my example above I want to get a result like...
http://mysite/websites/microlabs
and not only ....
mysite
Any workaround or command would greatly help me.
Thanks .
Alex