PHP Classes

upload() function

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in

      FTP Writer Class  >  All threads  >  upload() function  >  (Un) Subscribe thread alerts  
Subject:upload() function
Summary:an error in upload function
Author:onur köse
Date:2007-04-16 20:06:26

  1. upload() function   Reply   Report abuse  
Picture of onur köse onur köse - 2007-04-16 20:06:26
if you want to use this function you need to replace this lines

$upload=ftp_put($this->ftpconnid, $this->ftpInfo['ftproot'].$pTargetFile, $this->ftpInfo['ftproot'].$pSourceFile, FTP_BINARY);

to this

$upload=ftp_put($this->ftpconnid, $this->ftpInfo['ftproot'].$pTargetFile, $this->ftpInfo['serverroot'].$pSourceFile, FTP_BINARY);