Question about using ftp_put() for copying files

From: Date: Thu, 24 May 2007 19:37:33 +0000
Subject: Question about using ftp_put() for copying files
Groups: php.general 
Request: Send a blank email to php-general+get-255551@lists.php.net to get a copy of this message
Can anyone explain what's going on. If I assign $source= $source_dir . $file; $source_dir is the absolute path i.e., /home/xxxxx/public_html/EditPage/ And $dist= $dist_dir . $file; $dist_dir is simply relative to $_SERVER[document_root]; i.e., just plain /test To get ftp_put() to work, I must first chdir to the $dist_dir. ftp_chdir($dist_dir); ftp_put($conn_id, $dist, $source, flag]; Thanks....

« previous php.general (#255551) next »