Hi
Is there a function to tell the current directory? I modified some code i found here to do so, so if not, not a big deal. thanks chuck

function currentDirectory()
{	$cwd = getcwd(); 
	$directories = explode("/",$cwd); 
	$dirCount = count($directories); 
	return "/" . $directories[$dirCount - 1];
}

echo currentDirectory();

    Sorry? What's your question?

    Is there a function to tell the current directory?

    $cwd=getcwd();

    [/b]

    [man]getcwd[/man]
    getcwd -- gets the current working directory

      Write a Reply...