you can use the
is_dir() function in php
lets say you want to check if the
intsall/ directory still exists, you can write this php code:
<?
if (is_dir('install/')) {
$InstallError = "Your Install Directory Still Exists, Please Remove Immediately";
}
?>