Ad Code

Uploading files to another server after search in folder

I want search file in folder and they upload file in another server its is possible in php?? i will be upload this file via script is possible in php?

You can try

public function($path){ $ftpContents = ftp_nlist($this->ftp_connection,$path);
foreach( $ftpContents as $file )
{
if(strpos($file,'.')===false){
$this->ftp_dir_loop($this->ftp_connection,$file);
}
if(in_array(pathinfo($file, PATHINFO_EXTENSION),$this->accepted_file_types))
{
$this->html_file_paths[$path][]= substr($file, strlen($path)+1);
}
}
}

Reactions

Post a Comment

0 Comments