<?
$jclogin = "fanNNY aDams ForK";
$jclogin = ereg_replace(" ","", $jclogin);
$jclogin = strtolower($jclogin);
if(is_dir($jclogin))
{
echo "Yes, the directory ".$jclogin." exists.";
}
else
{
echo $jclogin." is not a valid directory.";
}
echo $jclogin;
?>
Youll be able to see I am making a script that takes a string, removes whitespace and makes lowercase, then I want to check whether a directory matching the string exists on the server.
existsThis all works fine as long as the directory is looking for is in the same directory as the script. How would I check if the direcory existed in a different but relative path?
thanks!