You can get the requested location from:

$_SERVER["QUERY_STRING"]

and use the dirname() function on it.

bvr.


On Sat, 2 Mar 2002 10:29:09 +0100, Andy wrote:

>Hi there,
>
>I am trying to find out which dir the user is browsing. How can I get the
>URL into a var? I tryed path_info, but it only returns the filename.
>
>Here is an example:
>
>URL: http://www.server.com/subapp/test.php
>
>Should return :
>
>subapp
>
>Is this possible??
>
>Thanx for any help
>
>Cheers Andy
>
>
>
>-- 
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to