RE: [PHP] Testing string length within FTP

2003-10-09 Thread Jay Blanchard
[snip] for($i = 0; $i < $countList; $i++){ $strDirName = substr($arrList[$i], 47, 8); if(strlen(chop($strDirName)) == 8){ echo $theDirectory.$strDirName.""; } } [/snip] Never mind. I am making them all 8 wide, just saw it. *slaps feverish forhead* -- PHP G

[PHP] Testing string length within FTP

2003-10-09 Thread Jay Blanchard
for($i = 0; $i < $countList; $i++){ $strDirName = substr($arrList[$i], 47, 8); if(strlen(chop($strDirName)) == 8){ echo $theDirectory.$strDirName.""; } } I am trying to check for $strDirName length, but the echo returns all file names within the directory re