Login   Register  
PHP Classes
elePHPant
Icontem

upload() function

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      FTP Writer Class  >  All threads  >  upload() function  >  (Un) Subscribe thread alerts  
Subject:upload() function
Summary:an error in upload function
Messages:1
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);