Bluehost.com Web Hosting $6.95

Testing string length within FTP

This is a discussion on Testing string length within FTP within the PHP General forums, part of the PHP Programming Forums category; for($i = 0; $i < $countList; $i++){ $strDirName = substr($arrList[$i], 47, 8); if(strlen(chop($strDirName)) == 8){ echo $theDirectory.$...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-09-2003
Jay Blanchard
 
Posts: n/a
Default Testing string length within FTP

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!
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 04:28 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0