Menu
Hi,
I came up with this problem last night.
I have a URL [url]http://www.mysite.com
How do I fetch the folder name that was supplied in the URL.
For example:
[url]http://www.mysite.com/xyz
or
[url]http://mysite.com/myfolder
or
[url]http://www.mysite.com/xxx
Please note that I can either use www or [url]http://www
PS:
I tried the following code, but it didnt revealed the foldername supplied
[code]<?php
echo $_SERVER[‘HTTP_HOST’];
?>
Please help.
Thanx