doubt regarding split and ftp_chdir function

Discussion in 'PHP' started by mandarj123, Apr 1, 2009.

  1. #1
    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
     
    mandarj123, Apr 1, 2009 IP
  2. fex

    fex Peon

    Messages:
    89
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    fex, Apr 1, 2009 IP