Re: Problem with recursion and FTP transfer

From: Date: Fri, 26 Nov 2004 13:17:36 +0000
Subject: Re: Problem with recursion and FTP transfer
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-202889@lists.php.net to get a copy of this message
kioto@slacky.it 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

« previous php.general (#202889) next »