Testing string length within FTP
| From: | Jay Blanchard | Date: | Thu, 09 Oct 2003 20:14:22 +0000 |
| Subject: | Testing string length within FTP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-165662@lists.php.net to get a copy of this message | ||
for($i = 0; $i < $countList; $i++){
$strDirName = substr($arrList[$i], 47, 8);
if(strlen(chop($strDirName)) == 8){
echo $theDirectory.$strDirName."<br>";
}
}
I am trying to check for $strDirName length, but the echo returns all
file names within the directory regardless of length (was going to use
is_dir, but cannot on remote file system). I know that all remote
directory names are 8 characters in length, but returning this is not
working. I hope I am making sense. TIA!