kioto@xxxxxxxxx wrote:
Hi all
I have create a script for FTP function.
When i have testing the script with little file and directory it's ok
The script read data in all folder with recursive function and the same path of data
like C:\backup\folder1\file.txt is the same on remolte folder /httpdcos/folder1/file.txt
The problem is that when i testing the script with MB of files
the recursion is much more speed of transfer of a single file and a
file is copied to a path that is not the same of local folder.
How to fix the problem ?
Sorry for my bad language
Though i don't generally bother with long code samples i decided to make an excemption:
i believe calling @ftp_chdir($conn, $remote_folder) in your recursive function is wrong instead you should do a CDUP (call the corresponding function for that).
btw: get rid of the @ symbols and configure your php.ini so that all errors are written to the log file, you will then find it a lot easier to debug.
--
Raditha Dissanayake.
------------------------------------------------------------------
http://www.radinks.com/print/card-designer/ | Card Designer Applet
http://www.radinks.com/upload/ | Drag and Drop Upload
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php