ftp_chdir($ftp,$dir); $list = ftp_rawlist($ftp,""); foreach($list as $item) { $match = split("[ ]+",$item,9); $item_type=substr($match[0],0,1); i have the above code and suppose here $dir is the path on a server something like "d:\members\mydocs\" in mydocs folder ther are files which are to be uploaded can anyone tell me what does above code exactly do as im re engineering or refining the project thts actually dun but has sum flaws wht exactly is store in $match[] variable im nt gettin wht is out put of above snippet
These should certainly help you out.. ftp_chdir: http://www.w3schools.com/php/func_ftp_chdir.asp ftp_rawlist: http://www.w3schools.com/PHP/func_ftp_rawlist.asp split: http://be.php.net/split substr: http://www.w3schools.com/PHP/func_string_substr.asp No offence, but your google skills .. ?