note 36048 added to function.ftp-put

From: Date: Wed, 24 Sep 2003 01:43:29 +0000
Subject: note 36048 added to function.ftp-put
Groups: php.notes 
Request: Send a blank email to php-notes+get-57013@lists.php.net to get a copy of this message
if you examine the first user submitted function, ftp_putAll, it will work only if you extract this line and its matching bracket. if (!@ftp_chdir($conn_id, $dst_dir."/".$file)) The function will have changed into that directory before having uploaded files to it. This alters your upload path and the system will try to upload into an essentially non-existent directory (duped at the end). Hope this helps some of you. Cheers. Saeven ---- Manual Page -- http://www.php.net/manual/en/function.ftp-put.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+36048 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+36048&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+36048&report=yes

« previous php.notes (#57013) next »