Hi, have you tried this one?
$dir = dirname( $HTTP_SERVER_VARS['PHP_SELF'] ); Moriyoshi Koizumi "Andy" <[EMAIL PROTECTED]> 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, visit: http://www.php.net/unsub.php