ok that is great, thnx, but how do it get it to dript the file name, i just want the folder, sorry, should have said.
see what i have is several folder with peoples names,
so if you went to www.somedomain.com/charlie/index.php is echo's 'this folder belongs to charlie'
understand that?
sorry for my bad explination before!