jason213123 Posted July 6, 2011 Share Posted July 6, 2011 hi, i need copy a local folders and files to a ftp server for example i call this: copy ( $ftpserver, $user, $password , local path + file ); or copy ( $ftpserver, $user, $password , local path / folders / folder + file ); the script must see all sub dirs and creat the same struture for copy the file that i need any one know a script that can do that? i have found this: http://www.weberdev.com/get_example.php3?ExampleID=4798 but for some reason this don´t work for me. thanks for your help Link to comment https://forums.phpfreaks.com/topic/241200-copy-folder-recursive-using-ftp/ Share on other sites More sharing options...
xyph Posted July 6, 2011 Share Posted July 6, 2011 PHP can't access local files. Link to comment https://forums.phpfreaks.com/topic/241200-copy-folder-recursive-using-ftp/#findComment-1238951 Share on other sites More sharing options...
jason213123 Posted July 6, 2011 Author Share Posted July 6, 2011 hi, when i say local files i mean server files. i want copy the files that is in same place of the script, i can copy the files the problem is the folders i need creat the same struture thanks Link to comment https://forums.phpfreaks.com/topic/241200-copy-folder-recursive-using-ftp/#findComment-1238955 Share on other sites More sharing options...
xyph Posted July 6, 2011 Share Posted July 6, 2011 http://stackoverflow.com/questions/927341/upload-entire-directory-via-php-ftp Link to comment https://forums.phpfreaks.com/topic/241200-copy-folder-recursive-using-ftp/#findComment-1238960 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.